开发者

ASP.NET GridView Image Command Button Problem (Multiple PostBacks)

ASP.NET GridView Image Command Button causes Multiple PostBacks.Is this is a known issue ? or is there any solution(not 开发者_如何学编程workaround).


Try using this way

<asp:TemplateField>
 <ItemTemplate>
    <asp:ImageButton ID="Button" runat="server" ImageUrl="../images/Editicon.png" OnClick="Button_Click" /> 
 </ItemTemplate>
</asp:TemplateField>

protected void Button_Click(object sender, EventArgs e)

{}

I m sure you wont face ne problem with this

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜