Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
I have used paging in a gridview but for the first click event it is working fine but for the second event gridview is not updating. Please help...
Posted

1 solution

According to your description, I see that you were using the Response.Write when the updatepanel async post back.
As we all know that we can't use Response.Write during an asynchronous postback. If you want to use it when gridview paging or sorting.

I think you should set it as PostBackTrigger of updatepanel. Like below

<triggers>
          <asp:postbacktrigger controlid="GridView1" xmlns:asp="#unknown" />
 </triggers>
 
Share this answer
 

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