|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
IntroductionHave any of your users ever told you that after filling that long data entry form he accidentally closed the browser or moved to another page and forgot to click the save button? I heard this story more than once, and at the end my responses I often told he user something like "Well, you should pay more attention when you're filling out a form." Of course, I didn't say it using these words, but that was the only thing we could say. In fact, keeping track of fields that were changed in classical ASP.NET forms is not an easy task. Since every postback fires the Now in the AJAX world, this limitation is gone. If we have a 100% "ajaxfied" page, the This is a Panel that automatically detects if any control inside it was changed and shows an alert if the user tries to leave the page before saving the data. Click here to see a sample page. Using the code
Once again I am using the Anthem.NET library to give AJAX functionality.
This webcontrol inherits from the Anthem Panel, so what you need to do is to put all your data entry controls within this panel and set the property The download file contains the webcontrol and a sample page. ConclusionThis is a simple to use, yet very useful webcontrol that can enhance the usability of your web application. I hope you enjoy it.
|
||||||||||||||||||||||