Community discussion forum

Problem with DropDownList

  • 7 months 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
    Post was edited on 02/04/2009 14:27:58 Report abuse
  • 7 months 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).

Want to stay in touch with what's going on? Follow us on twitter!