Setting up validiation check for dropdownlist box

  • Thread starter Thread starter Hai Nguyen
  • Start date Start date
H

Hai Nguyen

I wonder if there is a way we can make user select dropdownlist box before
they can go to the next page
I did use validiation control but seem it fail
 
A validation control would be the standard way to handle this.
Perhaps we can help you get going with it if you tell us more about the
failure you experienced.
 
use a custom validation control....
you will need to write you own client side and server side validation
code... so you can customize it the way you want to.....

use registerclientscriptblock to register the javascript... and all you have
to do is set the methods to custom validation control.. with the control to
validate....

http://authors.aspalliance.com/aspxtreme/aspnet/syntax/CustomValidatorcontrol.aspx

if you need any help... i might be able to help you with some code...
 
I have a dropdownlist box which retrives from a database. It looks like this
A
B
C
D
E

I want to add one more row which does not have in database and also don't
want to mess with the database. I want it look like this for later
validation check

Select Here
A
B
C
D
E
T
he validation check will throw an ErrorMessage if users does not select
anything at all.
 
Back
Top