Problem with DropDownList

dropdownlist , csharp dropdownlist , asp.net control Toronto, Canada
  • 11 years ago
    Hi, I am working on asp.net 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).

Contribute

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.

“A computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match” - Bill Bryson