Magic Trick Datagrid Delete Row

G

Guest

I have found many cases in that after a row has been deleted from a datagrid
using a linkbutton and then hit the browser refresh button the row previous
to the origianal delete will as well be removed if there is one. I have
attempted to track the refresh in a session variable, but in all honesty
would like to disable the refresh button/F5 on ie.
Any thoughts
 
B

Brock Allen

This is how the browser works. If you hit refresh you're asking the browser
to do what it just did. If that's a post, it warns you but you're sentiment
is correct, since no one reads or understands the warning. The best way to
avoid the user refreshing and reposting is to Response.Redirect(Request.Path)
which causes a GET. Then a refresh is just another GET of the page.
 
G

Guest

So, how do I change that one control to get. If i changed the form attribute
the rest of my controls will not work? I am an entrylevel programmer and use
vs.net to create event handlers.

c#dev
 
G

Guest

I am sorry, I read your reply to fast(hopefully a bigginer thing) but that
worked great thank you so much!!!!

c#dev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top