selected drop down value

Results 1 to 2 of 2

Thread: selected drop down value

  1. #1
    Join Date
    Dec 1969

    Default selected drop down value

    hello people..<BR>lets say i query a value from a database, and i would like the value to be in a dropdownlist as well as a specific value selected. how can i get this done?<BR>lets the value in my dropdownlist will be<BR>&#060;asp:dropdownlist id="ddl" runat=server&#062;<BR>cat<BR>dog<BR>cow<BR>mouse<B R>&#060;/asp:dropdownlist&#062;<BR><BR>and i want cow to be a selected value..if i own a cow.. how cani get this done people.. this purpose of selection will be for my edit mode.<BR>thanks in advance.

  2. #2
    Join Date
    Dec 1969

    Default RE: selected drop down value

    You can use this:<BR><BR>ddl.Items.FindByValues("cow").Selecte d = true;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts