Asp.Net Set Dropdown Value using FindByText Method

To set value of ASP.Net Dropdown using FindByText use below code

ddlEmployeeType.Items.FindByText(ds.Tables[0].Rows[0]["EmployeeType"].ToString()).Selected = true;

Leave a comment