DropDownList changed after reading SelectedValue !!!!
-
dear sirs i have DropDownList bounded to a datasource , when i read its SelectedValue , the displayed item is changed in the dropdownlist say dropdownlist contains item1 , item2 , item3 , item4 , ...etc whatever i select , the dropdownlist changed to item2 thx dear sir i discovered the problem became more complicated than i thought some more background is needed the dropdownlist is binded to datasoure ( username , password , user rank), i display the username and i return the password in selected value and the dropdownlist sorted by rank indeed the dropdownlist working so fine and the selected item remains even after reading selected value but IN ONLY ONE COND. that such username has a unique password for example: user pass aaa 1234 bbb 1234 ccc 34343 dddd 67657 if i choose ccc it will return 34343 selected index 2 if i choose dddd it will return 67657 selected index 3 if i choose aaa it will return 1234 if aaa is higher rank than bbb if i choose bbb it will return 1234 selected index 1 please kindly help me thx alot bye
-
dear sirs i have DropDownList bounded to a datasource , when i read its SelectedValue , the displayed item is changed in the dropdownlist say dropdownlist contains item1 , item2 , item3 , item4 , ...etc whatever i select , the dropdownlist changed to item2 thx dear sir i discovered the problem became more complicated than i thought some more background is needed the dropdownlist is binded to datasoure ( username , password , user rank), i display the username and i return the password in selected value and the dropdownlist sorted by rank indeed the dropdownlist working so fine and the selected item remains even after reading selected value but IN ONLY ONE COND. that such username has a unique password for example: user pass aaa 1234 bbb 1234 ccc 34343 dddd 67657 if i choose ccc it will return 34343 selected index 2 if i choose dddd it will return 67657 selected index 3 if i choose aaa it will return 1234 if aaa is higher rank than bbb if i choose bbb it will return 1234 selected index 1 please kindly help me thx alot bye
-
DropDownList.SelectedValue is already false :^)
-
DropDownList.SelectedValue is already false :^)
whether in its Page_Load event has been added like this:
(! Page.IsPostBack)
{}
to be this
protected void Page\_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { } }