Verify GridView Edit

D

David

I have a GridView with an Edit command. I am setting a flag when the edit
starts and turning it off when the row is updated. I want to give the user
a warning (I am using onbeforeunload javascript function in body) if they
select Edit but do not Cancel or Update. However, when the Cancel button is
clicked, the page leaves and the warning pops up. How can I bypass the
warning in this situation? Thanks.

p.s. I use this same process on a FormView and it works great, but not on a
GridView.

David
 

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

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top