KARPACH

WEB DEVELOPER BLOG

Regular Expression for adding RequiredFieldValidators

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

In ASPX file do Quick Replace with a Reqular Expressions turned on

Find what: ID="{txt{[^"]*}}" Replace with: ID=\1 runat=“server”>

Do “Replace” for fields that need validation.

Posted on March 10, 2008 by

Comments

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

Finding this post has answered my pryares