Regular Expression Validator on dropdownlist

B

Bas Groeneveld

Hi

I want to detect a name in brackets - eg (Bas) - being selected in a
dropdownlist. I intended to use the RegEx validator with ^\(.*\)$ which
should work.

My problem is that the value of the dropdownlist is not the same as the
displayed text (ie it is the ID of the selected item) and the validator
appears to operate on the list value.

Is there a way to link the validator to the displayed text instead of the
value of a dropdownlist control?

(I am using ASP.NET V1)

Thanks
Bas

--

==========================================
Bas Groeneveld
Benchmark Design System and Software Engineering
PO Box 165N, Ballarat North, VIC 3350
Phone: +61 3 5333 5441 Mob: 0409 954 501
 
B

Bas Groeneveld

Thanks

I figured that but hoped that there would be another way.

Cheers
Bas


"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top