how to select the text from the dropdownlist
C#
1
Posts
1
Posters
0
Views
1
Watching
-
hi i have one dropdown list and i get the data from the database in dropdownlist. now i need to select the data from the dropdown list and after selecting i need to insert that text into the database. i try ddlproduct.selecteditem.text where ddlproduct is a drodownlist id but i get the first value from the dropdown if i select some other value i am getting the first value only i forget to tell one thing i am using c# please help me with some code and example thanks