Is ChandanIdiot () a protected function that returns a string?
protected string ChandanIdiot() {
return "test";
}
If you want to actually do some data processing, you have to enable the option:
protected string ChandanIdiot(object obj) {
return "test " + obj;
}
And, assuming that the object you are updating has the "Name" property, you should have the following:
<asp:Label ID="lblDays" runat="server" Text='<%# ChandanIdiot(Eval("Name")) %>' />
source
share