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.


Posted on Monday, March 10, 2008 by | Comments (1) | Add Comment

Comments

Gravatar

Re: Regular Expression for adding RequiredFieldValidators

Finding this post has answered my pryares

Posted on 11/27/2012 12:20:57 AM by Keltoume #

New Comment

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

Categories

Recent Tweets

  • Simon Ince's Blog: Hierarchies with HierarchyID in SQL 2008 http://t.co/xSDwiF6rRS.
  • Visual Studio 2010 WAS painfully slow - CodeProject http://t.co/Usba1x6CZy

Valid HTML5