Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

DropDownList Selected Item

Could anyone help me with an example of how to make a users previous selected
value stored in a cookie the Default item for the drop down list. The drop
down list is a databound control.
I hope this makes sense.
Thanks in advance for your help.
Scott
[280 byte] By [Scott S.] at [2007-11-9 16:24:15]
# 1 Re: DropDownList Selected Item
say your drop down list is dropdown1.. try this code snippet
dropdown1.Items.FindByValue("your cookie value").Selected = true;

Hope this solves your problem
Have fun
supratim at 2007-11-11 23:26:04 >