Click here to Skip to main content
15,891,762 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
Tell me how to handle gridview events such as Row_Editing,Row_Deleting in ajax updatepanel trigger.

My code is

<asp:ScriptManager ID="ScriptManager1" runat="server"/>

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<contenttemplate>

here is my gridview

<triggers> <asp:AsyncPostBackTrigger ControlID="gv" EventName="RowEditing" />

but when I clicked on edit button which is in gridview this event does not handle .

So please give me solution
Posted

1 solution

pls try to this


you have to edit button id put to the control id

for example control id="edit"



XML
<Triggers>
          <asp:PostBackTrigger ControlID="btnSubmit" />
          <asp:PostBackTrigger ControlID="btnUpdate" />
          </Triggers>

 
Share this answer
 
Comments
Ajay Shedge 8-Jan-15 0:58am    
Hello friend,

but this edit button present in gridview <edititemtemplate> that's why this event can't goes to click event when I clicked on edit button

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900