Setting the selected item in an ASP.NET dropdownlist with the help of the display text + FindByText method

vishalneeraj-24503
Posted by vishalneeraj-24503 under ASP.NET category on | Points: 40 | Views : 462
Method 1:
ddl_emp.Items.FindByText("Vishal").Selected = true;


Method 2:
ddl_emp.SelectedValue = ddItems.Items.FindByText("Vishal").Value;

Comments or Responses

Login to post response