I am working on an Asp.NET project and I am trying to set the selected value of a dropdown list with a text property. For example i have i.e an item in the dropdown list wit
string t = "test"; drpFunction.ClearSelection(); drpFunction.Items.FindByText(t).Selected = true;