i need to perform gridview edit,update without postback
<EditItemTemplate>
<asp:ImageButton ID="imgbtnUpdate" CommandName="Update" runat="server" ImageUrl="~/images/gupdate.jpg"
ToolTip="Update" Height="20px" Width="20px" />
<asp:ImageButton ID="imgbtnCancel" runat="server" CommandName="Cancel" ImageUrl="~/images/gCancel.jpg"
ToolTip="Cancel" Height="20px" Width="20px" />
</EditItemTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgbtnEdit" CommandName="Edit" runat="server" ImageUrl="~/images/gEdit.jpg"
ToolTip="Edit" Height="20px" Width="20px">
</ItemTemplate>on clicking edit button in gridview cause postback., i dont want the edit mode to get postbacked... can anyone help on this issue
Thanks
Gridview edit,update withoust postback
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
SenthilkumarRank #387 · 6.5K pointsPosted Mar 8, 2012, 8:49 PM EST
You can the AJAX to avoid page reload and rendering again.
Place the update panel for the grid view.
You can refer this example AJAX site to know how to implement.
http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/