Click to See Complete Forum and Search --> : If an item in the dropdown list is selected


Funkymonkey
07-14-2005, 06:30 AM
How do I write an if statement that states:
IF an item in my dropdown list is selected THEN....

I've got this:
If questionddl.SelectedValue = True Then

But it's not working...

Thanks loads :confused:

Funkymonkey
07-14-2005, 06:34 AM
Or better still how would I say:

IF an item in my dropdown list is selected (excluding the first item [which is the title]) THEN....

gowtham
07-14-2005, 10:41 PM
you can try
If questionddl.SelectedValue <> the Default option(the title in our case) THEN
...
..
Endif

Funkymonkey
07-15-2005, 02:43 AM
Excellent thanks!