GridView Template field event handler not working in Sitefinity
<asp:GridView runat="server" ID="grdJobs" AutoGenerateColumns="true" > <Columns> <asp:TemplateField> <ItemTemplate> <asp:ImageButton runat="server" ID="img" OnClick="imgEdit_Command"ImageUrl="~/img" /> </ItemTemplate> </asp:TemplateField> </Columns></asp:GridView>protected void imgEdit_Command(object sender, ImageClickEventArgs e) btn.Text = "jhgjhgj"; Hi Mohamed,
Since the control is working fine when placed on an external page, there should be no problem using in on a Sitefinity page. Can you please make sure that you have EnableViewState checked form the page's title and properties?
All the best,
Boyan Barnev
the Telerik team