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.
say your drop down list is dropdown1.. try this code snippet
dropdown1.Items.FindByValue("your cookie value").Selected = true;
Hope this solves your problem
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL