Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Regular Expressions To Validate a Drop Down

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
hey gang,

I've got an asp.net drop down list that I want to validate. Now, asp.net has validate controls that basically write javascript validation to the web page, so I figured that the basics of how it works would be relevent on this forum.

What I need to do is write a regular expression that will either
a) evaluate against teh ddl.value property, and if its 0 display the error message.
or
b) evaluate against the ddl.text peropty for No Client Selected, and if it matches display the error message.

any help would be greatly appreciated
:)

Thanks,
Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top