Eamonn

Eamonn

  • NA
  • 3
  • 1.4k

Dropdownlist

Aug 27 2013 11:06 AM
hi Guys

i am using the following code to add elements to a dropwdownlist

 DDL3.Items.Add(new ListItem("Full Time","10")); i this piece of code as u can see ive added the name Fulltime which has and index value of10 this is stored in a database. however full time has 2 index values it can be either 10 which i have stated or it could also be 50 any suggestion of how to add this to the list. ive tried the following statemnt but its not the correct syntax
 DDL3.Items.Add(new ListItem("Full Time","10"||"50");


 

Answers (3)