G
Ganesh
Hi There,
I want to call a server method from gridview's template field, but it
doesn't seem to be working, any idea what is wrong in this.
Thanks
Ganesh
..aspx
<ItemTemplate>
<asp:Image BorderWidth=1 Height=16 Width=16 ID="Image1" runat="server"
ImageUrl='<%# Eval("City") %>' />
<asp:TextBox Text ='<%# Eval("City") %>' runat="server" />
<asp:TextBox ID="TextBox134" Text ='<%# CallTest(<%# Eval("City") %>) %>'
runat="server" />
</ItemTemplate>
</asp:TemplateField>
..aspx.cs
public string CallTest(string a)
{
return a;
}
I want to call a server method from gridview's template field, but it
doesn't seem to be working, any idea what is wrong in this.
Thanks
Ganesh
..aspx
<ItemTemplate>
<asp:Image BorderWidth=1 Height=16 Width=16 ID="Image1" runat="server"
ImageUrl='<%# Eval("City") %>' />
<asp:TextBox Text ='<%# Eval("City") %>' runat="server" />
<asp:TextBox ID="TextBox134" Text ='<%# CallTest(<%# Eval("City") %>) %>'
runat="server" />
</ItemTemplate>
</asp:TemplateField>
..aspx.cs
public string CallTest(string a)
{
return a;
}