473,394 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Creating validation expression

1
Hi,
I'm using 3 text box controls in asp.net.
I want to validate the each text input to this control.
I want to give only following characters for 3 text boxes
text box 1 = (/\|"
text box 2 = .,:;
text box 3 "|/\)

How to validate this?
Which validateion control Do i have to use?
how to create validatation expressions for this?
Do you know tool or website to create validation expressios for any characters?

Thanks

Niluka
Dec 13 '10 #1
1 3164
GaryTexmo
1,501 Expert 1GB
Hi there. I've found this website absolutely awesome for working with regular expressions, which can be used for validation. It helps you build and test them.

http://www.gskinner.com/RegExr/

As for how to validate, you can use a regular expression to validate. You can do this in one of the validate events on a textbox, at which point you can cancel the event if validation isn't met.

Regex Class
Dec 13 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Steve | last post by:
Hi I have a really weird problem and any assistance would be welcome. I have developed an app in Access 2002. The app runs perfectly on the development machine. I have packaged the app using...
1
by: Hai Nguyen | last post by:
I want to validate a textbox with date in the right format. I already have it worked. However, my validation expression does not solve the # of days in Feb; for isntance it does not solve for leap...
3
by: Paul | last post by:
Hi I am using a validationexpression with a regular expression validator. In the properties window for the expression I have |||||||| as I want the following format, abc-efg-hijk-12345-6789 abc...
5
by: JIM.H. | last post by:
Hello, I have this validation expression: ^(?:(?:0?|1)|(?:0?|11)(?!\/31)|(?:0?2)(?:(?!\/3|\/29\/(?:(?:0||)00|(?:\d{2}(?:0||))))))\/(?:0?||3)\/\d{4}$ This is supposed to match MM/DD/YYYY it is...
2
by: pintu | last post by:
Hi I am writing a validation expression for the followings 1)EPF/chp15_v3.htm#p33 or 2)EPF/chp15_v3.htm I wrote the validation expression as *\.(htm|html)\#*$
2
by: pintu | last post by:
Hello every body..First of All Very Very Happy new year to all of u. Today i hav my problem with the validation expression. *\.(htm|html)\#?*$ the above expression works fine for ...
1
by: rn5a | last post by:
A Web Form has a TextBox for users to enter their telephone numbers. I need to validate the TextBox against 3 conditions - firstly, the TextBox should allow only whole numbers (from 0 to 9)....
5
by: Sean | last post by:
I am finally taking the time to get to know regex, but it seems I have taken a bit of a tumble. I have the following (dummy) data: <td>Name:</td <td>Kherie Kali</td> If I use this...
5
by: confused1234 | last post by:
i have a uk validation expression GIR 0AA|({1,2}|(|(|))|) {2}) The line break above is a space. I would like to allow lower case letters aswell. at the moment N19 2UD is correct n19 2ud...
0
by: seng | last post by:
i wanna valid these two input"holland road no.4" and input"hollandroadno.4" allow space,dot,number and alphabet how I can do? give me validation...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.