Page is Dirty information

E

EDom

Hi,
On my page I have dataset values displayed in text box and datagrid. After I
make any change on the text boxes which do not immediately effect the value
in the dataset. How can I know if the dataset is dirty. I mean how can I
capture if any change was done to the values in the controls on the page to
prevent the user from escaping without saving changes

Regards
 
G

Guest

EDom said:
Hi,
On my page I have dataset values displayed in text box and datagrid. After I
make any change on the text boxes which do not immediately effect the value
in the dataset. How can I know if the dataset is dirty. I mean how can I
capture if any change was done to the values in the controls on the page to
prevent the user from escaping without saving changes

Regards

You could perhaps store the xml from the dataset (myDataSet.GetXml() ) in
the Session and check whenever the user navigates away from the page (within
your solution) if the xml has changed.

If the user just closes the browser he won't get a warning though. I don't
know if this is any help.
 

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,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top