473,473 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Text field validation

I'm using SQL Server and ASP.Net. I would like the users when typing in
their passswords to enter in:
1. At least 6 characters
2. At least 1 number
3. At least 1 letter.

I have looked at the validator controls and can't find a example.
Any ideas or articles?

Thanks.

Erik
Nov 18 '05 #1
3 1380
Use the regular expression validator and enter the correct validation
expression. There is a help file accessible from the ValidationExpression
property dialog box that is a tutorial on regular expressions.
"Big E" <no****@nospam.com> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
I'm using SQL Server and ASP.Net. I would like the users when typing in
their passswords to enter in:
1. At least 6 characters
2. At least 1 number
3. At least 1 letter.

I have looked at the validator controls and can't find a example.
Any ideas or articles?

Thanks.

Erik

Nov 18 '05 #2
I can't find anything that will show me how to force users to enter at least
1 letter and 1 number.

Thanks.

Erik
"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:ei**************@TK2MSFTNGP11.phx.gbl...
Use the regular expression validator and enter the correct validation
expression. There is a help file accessible from the ValidationExpression
property dialog box that is a tutorial on regular expressions.
"Big E" <no****@nospam.com> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
I'm using SQL Server and ASP.Net. I would like the users when typing in
their passswords to enter in:
1. At least 6 characters
2. At least 1 number
3. At least 1 letter.

I have looked at the validator controls and can't find a example.
Any ideas or articles?

Thanks.

Erik


Nov 18 '05 #3
To make the textbox required AND to have the data follow a specific pattern,
you need to add 2 validators to form (1 is a RequiredFieldValidator and 1 is
a RegularExpressionValidator) and have BOTH of them point to the textbox as
the ControlToValidate.

Now, users will be required to fill in data AND the data they fill in will
have to follow the regular expression you set up.
"Big E" <no****@nospam.com> wrote in message
news:uG**************@TK2MSFTNGP11.phx.gbl...
I can't find anything that will show me how to force users to enter at least 1 letter and 1 number.

Thanks.

Erik
"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:ei**************@TK2MSFTNGP11.phx.gbl...
Use the regular expression validator and enter the correct validation
expression. There is a help file accessible from the ValidationExpression property dialog box that is a tutorial on regular expressions.
"Big E" <no****@nospam.com> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
I'm using SQL Server and ASP.Net. I would like the users when typing in their passswords to enter in:
1. At least 6 characters
2. At least 1 number
3. At least 1 letter.

I have looked at the validator controls and can't find a example.
Any ideas or articles?

Thanks.

Erik



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: MT | last post by:
Hi all, this sounds like an easy enough thing to do, but after spending 45 minutes searching google and various javascript sites I can't find out how to make a textfield (textbox or whatever you...
2
by: Marina | last post by:
Hi, Here is the desire behavior, when the user tries to leave a field, that field is validated. If the value in the field is invalid, the previous value is restored - however, the user is...
6
by: The Eeediot | last post by:
Hello, Folks... I'm almost becoming a regular to this newsgroup. I am trying to display the contents of an MS-SQL Text field to a TextBox in ASPdotNET. The text in this field contains all...
1
by: Stephen Adam | last post by:
Hi there, I have written a custom validation control which checks to see of an input field is not empty and contains only numeric data. I was using a regular expression validation control but...
9
by: sellcraig | last post by:
Microsoft access 2 tables table "data main" contains a field called "code" table "ddw1" is created from a make table query of "data main" Goal- the data in "code" field in needs to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.