Dropdownlist

T

Timothy Elvidge

in the submit button click event i attempt to retrieve the value of the
dropdown list with following syntax StoreIs.SelectedValue.ToString() this
fails. When I check the value in the debugger command window I get:-
error: 'StoreIs.SelectedValue.ToString' does not exist
I can clearly see that the control has a option selected and have used the
same code in other forms with no problems. Any suggestions?
 
B

Ben Lovell

Hi,

Does the control have viewstate enabled and are you checking for a postback
and conditionally binding the control? What datasource are you using to bind
to?
 

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,813
Messages
2,569,699
Members
45,489
Latest member
SwethaJ

Latest Threads

Top