Problem with DropDownList

dropdownlist , csharp dropdownlist , control Toronto, Canada
  • 11 years ago
    Hi, I am working on with C#. I am saving the value of a dropdownlist as DDLState.SelectedItem.Value.Trim(). The value has a statecode and the text property has state name. So when I am retrieving the value from database and trying to bind it like : DDLState.SelectedItem.Value = "1" , it doesn't show me the exact state, instead when I press F5 then it shows the desired results. So what can be the problem here? Regards, Royal
  • 11 years ago
    Hmm, Have you ran through the code to look for errant databind calls? those can behaviour like that. Si

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The generation of random numbers is too important to be left to chance.” - Robert R. Coveyou