Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 23rd, 2004, 02:44 PM
Authorized User
 
Join Date: Aug 2004
Location: Hull, yorkshire, United Kingdom.
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Baby_programmer Send a message via MSN to Baby_programmer Send a message via Yahoo to Baby_programmer
Default Regular Expression for password


Hi! Friends
            i have a problem that i want to apply validation on the Password
field, that it must not be less than six characters ...please send me the custom validation function or any other methos ..iam using VS.net (asp.net using C#)

i'll be thankfull to you guys

ashfaq
__________________
Baby Prgrammer
  #2 (permalink)  
Old December 28th, 2004, 01:01 AM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I created a event on the click of a button. The code here is VB since I don't know C#. I'm sure you can convert it easily.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TextBox1.Text.Length < 6 Then
            Label1.Text = "Password must be 6 characters"
        Else
            Label1.Text = ""
        End If
    End Sub




Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular expression for password? tina123 ASP.NET 1.0 and 1.1 Basics 2 October 3rd, 2008 08:23 PM
Regular Expression Help Please rstelma ASP.NET 1.0 and 1.1 Professional 0 January 2nd, 2008 07:01 PM
Regular Expression for a password? Jeff Mason VB.NET 6 May 18th, 2007 10:59 AM
Password Validation with Regular Expression moghazali ASP.NET 1.0 and 1.1 Basics 0 January 7th, 2007 04:50 AM
Regular Expression for password kitkits ASP.NET 1.0 and 1.1 Basics 2 April 28th, 2005 11:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.