hi,
in my web application i would like to catch any changes the user makes on the form . One way should be to handle all events for the webcomponent in the page, but is there another way( at page level) ?
thanks.
For example, i have a dropdownlist and a textbox.
I fill them with data retrieved from the DB.
when the user click the SAVE button, i read back the current data and pass them to an update stored.
If the user select another item in ddl or modify the textbox' content, i'd like to have some way to "efficiently" notify me that a change occurred.
how can i do that with dataset? I think i should update my dataset first each time user changes something and then check the HasChanges property, but this means i have to handle all control's "OnChange" event. Am i wrong?
One method would be to use the database itself (i.e. use a trigger that fires each time the record is updated and then fire an email off to you if data has changed). Sometime I don't like this method though as it tends to consist of having application code within the database but I guess it's up to you on which method you use.
Probably i was not clear when i said "notify a change has occurred". I just need to know, before execute the save method, if some data are changed .
Till now i set a IsChanged property on each OnChange event, but i was wondering if is there another solution ( a "best practice") in this case.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.