For displaying value instead of id you need to change like this...
first of all you need to add that value filed in your
select query
of your
drop down
if it would not there...
for example..
select name,id from student
now change your
drop down
design like this...
dropdwon.datavaluefiled = "id";
dropdwon.datatextfiled = "name";
then bind your
dataset
OR
datatable
to your
drop down
so it will display name in
drop down
text filed and id as value.
for getting value or text as per selection you need something like this..
dropdown.selectedvalue
dropdown.selecteditem.text
this way you can solve your problem...