web
ASP.NET Client-side Validation & Confirmation Popup
Submitted by khairie on Fri, 05/22/2009 - 15:38
Related Terms :
The other day I was working on a project for our client. They wanted some client-side validation to be done on the page to avoid postbacks, since postbacks could take REALLY long on a slow connection. They also wanted a javascript confirmation popup before processing the form.
In the page, I had a few RequiredFieldValidators, as well as some RegularExpressionValidators. Initially, I modified the submit button to include the confirmation message, and check whether the page is valid or not. Below is a snippet of the ASP.NET button that I had in my page.
- Add new comment
- Read more
- 730 reads
Recent comments
8 weeks 6 days ago
46 weeks 6 days ago
50 weeks 4 days ago