Hi Eranga,
Basically, SelectedIndex property is the only way to get the selected =
item of a DropDownList.
However, instead of retrieving the index first and then getting the =
string, you can straight away get=20
the value by using the following code:
Me.ddlLocation.Items(Me.ddlLocation.SelectedIndex).Value
HTH
Mona[Grapecity]
[quoted text, click to view] "Eranga" <kmm_e@yahoo.com> wrote in message =
news:ewfaF4ZZFHA.1040@TK2MSFTNGP10.phx.gbl...
>=20
>=20
> I want to get the selected item of a DropDownList. Is
> DropDownList1.SelectedIndex the only way of doing this. It seems
> ineficient to get a number and later compare it and get the string.
> Please some one help me.
> Thanks in advance.
>=20