Click here to Skip to main content
15,909,193 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my project I'm using a gridview with delete button. After deleting a row if I'm refreshing the page, then the next row is also getting deleted. Is there any solution for this problem? Pls help me...

Thankyou.
Posted
Comments
Prasad_Kulkarni 12-Mar-12 5:51am    
How/where you have written your code?
post your code here..

1 solution

hi there..

After deleting the record just insert this snippet..

C#
Response.Write("javascript:window.location.reload()");
 
Share this answer
 
v2
Comments
Zukiari 13-Mar-12 8:00am    
Actually, after deleting a row the gridview is getting automatically updated. But if I'm refreshing the page then the next row is also getting deleted whis is unwanted. Also if I'm inserting a data through textbox and then refreshing the page, data is adding to the table twice. What I've to do for this?

thank you.

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