![]() |
|
|
|||||||
![]() |
ASP Net - RequiredFieldValidator : DropDownList (newbie qu) |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi
I am trying to validate a dropdown with RequiredFieldValidator. One of the list items is 'Please select' with a value of 0. How can I validate whether they have selected this option? Thanks Angela Angela |
|
|
|
|
#2 |
|
Posts: n/a
|
You can use the InitialValue property to validate against this value.
<asp:req... InitialValue="0" /> will fail if "Please Select" is the active. Karl "Angela" <> wrote in message news: om... > Hi > > I am trying to validate a dropdown with RequiredFieldValidator. > > One of the list items is 'Please select' with a value of 0. > > How can I validate whether they have selected this option? > > Thanks > > Angela Karl Seguin |
|
|
|
#3 |
|
Posts: n/a
|
Make it's value an empty string.
The REquiredFieldValidator will then work on it just like if it was any other HTML control "Angela" <> wrote in message news: om... > Hi > > I am trying to validate a dropdown with RequiredFieldValidator. > > One of the list items is 'Please select' with a value of 0. > > How can I validate whether they have selected this option? > > Thanks > > Angela George Durzi |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Newbie; what is the best software to convert DVD (Vob) file to avi - divx ? | Laura25 | DVD Video | 4 | 07-12-2006 03:03 PM |
| NEWBIE - DVD burn problem - need help | Vic Baron | DVD Video | 6 | 09-29-2005 10:56 PM |
| newbie | Chris | A+ Certification | 1 | 08-16-2005 12:53 AM |
| Another newbie question | Jerold Pearson | DVD Video | 1 | 12-11-2004 02:25 AM |
| Newbie to Linux Mandrake | Volund | A+ Certification | 5 | 10-01-2004 03:12 PM |