Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have gridview inside the update panel ....In this the edit and update button is not working in gridview when gridview inside the updatepanel....

If i removed the updatepanel it works fine..But i need updatepanel to stop refreshing the page when button click in gridview....

Utherwise give more ideas to me to stop refreshing the page on button click event in gridview.


Regards
vivek
Posted
Comments
Kaushik Saha from Kolkata,India 21-Jul-12 7:24am    
give some c# and asp.net code snippets.

1 solution

Try adding a trigger within your UpdatePanel:
ASP
<triggers>
    <asp:asyncpostbacktrigger controlid="Button2" eventname="Click" />        
</triggers>
 
Share this answer
 
v2
Comments
vivekx2 21-Jul-12 7:45am    
When i am adding triggers it shows "button2" is not trigger in updatepanel "updatepanel1"

But button2 id is given inside the updatepanel.
Raje_ 21-Jul-12 8:09am    
Check this link
http://www.dotnetfunda.com/tutorials/ajax/updatepanel.aspx.

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