Regular Expression for alphanumeric password in C#

By Ankit Goyal | August 5, 2009 | 4,284 views
Category .NET


About author  Working on .NET technologies for past 2yrs. I am very passionate about the new features which get introduced in the technology. I am here to share the new features i get to know in the world of Microsoft. Follow me on twitter @ankygoyal Read more from this author


The task at hand is to validate the Textbox in asp.net for a valid password which should be an alphanumeric string consisting of numbers and alphabets only. It should have atleast 1 number and 1 a

We can attach a RegularExpressionValidator to the text box with the following regular expression:

regalphanumeric

kick it on DotNetKicks.com

Shout it

pimp it

Read more post on ASP.NET C#.NET Microsoft Password RegExpr 

4 comments | Add One

Comments

  1. VaibhavNo Gravatar - 09/15/2009 at 7:15 am

    Good.
    Very useful snippet.



Trackbacks

  1. DotNetBurner - C#
  2. DotNetShoutout
  3. PimpThisBlog.com

Leave a Comment

Name:

E-Mail :

Website :

Comments :