المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : how to select the text from the dropdownlist



C# Programming
04-09-2009, 12:12 PM
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