Regular Expression for adding RequiredFieldValidators

Here is the quick way of adding RequiredFieldValidator for a big form.

In aspx file do Quick Replace with Reqularexpressions turned on

Find what: ID=\"{txt{[^\"]*}}"

Replace with: ID=\1 runat="server">

Do "Replace" for fields that need validation.


Monday, March 10, 2008 | Add Comment

New Comment

Your Name:
Email (for internal use only):
Subject:
Comment:
 
Code above:

Categories

Recent Tweets

Valid XHTML 1.0 Transitional