DropDownList Selected Item


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: DropDownList Selected Item

  1. #1
    Scott S. Guest

    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

  2. #2
    Join Date
    Mar 2007
    Location
    India
    Posts
    3
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center