Hi, I'm trying to set the selected items in two different DropDownLists using the following code:
listSecurity_q1.Items.FindByText(aUser.security_question_1).Selected = true;
listSecurity_q2.Items.FindByText(aUser.security_question_2).Selected = true;
However, when i run the page I get a server error telling me that "A DropDownList cannot have multiple items selected." I'm a bit confused because I am setting the selected value for two different DropDownLists, and never am I trying to select Items.
Any ideas guys?
James
listSecurity_q1.Items.FindByText(aUser.security_question_1).Selected = true;
listSecurity_q2.Items.FindByText(aUser.security_question_2).Selected = true;
However, when i run the page I get a server error telling me that "A DropDownList cannot have multiple items selected." I'm a bit confused because I am setting the selected value for two different DropDownLists, and never am I trying to select Items.
Any ideas guys?
James