How to persist clientside values
-
Hi, I am populating a dropdownlist by clientside script.But after every postback the dropdown values vanish.How to persist them? Thanks
CC26
-
Hi, I am populating a dropdownlist by clientside script.But after every postback the dropdown values vanish.How to persist them? Thanks
CC26
DropDownList control have property
AutoPostBack=true
If you don't use
selectedindexchange
event then set autopostback to false,otherwise post your code and we will see where can be problem.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
-
DropDownList control have property
AutoPostBack=true
If you don't use
selectedindexchange
event then set autopostback to false,otherwise post your code and we will see where can be problem.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
Probably you didn't get my question.I have no problem with dropdownlist autopostback or anything. My problem is that, I am populating a dropdownlist using clientside script. But whenever my page is postback( say...i clicked a button), all dropdownlist items vanish..How to persist them after postback.
CC26
-
Hi, I am populating a dropdownlist by clientside script.But after every postback the dropdown values vanish.How to persist them? Thanks
CC26
May be making use of cookies workout for you.
Share your experience with others Check my Blog...
-
Probably you didn't get my question.I have no problem with dropdownlist autopostback or anything. My problem is that, I am populating a dropdownlist using clientside script. But whenever my page is postback( say...i clicked a button), all dropdownlist items vanish..How to persist them after postback.
CC26
Hi, In that case you have to strore these values in hidden field and bind the dropdown again.
himanshu