Programmatically set selected value of Dropdownlist aspx

How to programmatically set selected value of Dropdownlist aspx during loading of data:

We can select programmatically a value on dropdownlist by it’s index.

If we need to select by text then we need FindByText method as described in following line.

DropDownList1.Items.IndexOf(DropDownList1.Items.FindByText(“your default selected text”));

Complete example is described in following code, it’s very simple and easy.

Need your motivated comments to continue.