Click here to Skip to main content
15,896,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to display the selected value from dropdown list and to display in grid view. the value from dropdown list is retrieve from database
Posted

first go through following link...

Populating dropdown from database
[^]

C#
protected void ddComapanyFilter_SelectedIndexChanged(object sender, EventArgs e)
{
 
string value=dropdownlist1.SelectedValue;
}
 
Share this answer
 
Comments
Member 10479432 20-Dec-13 13:07pm    
i'm using visual basic 2010. is it use the same way too?
C For Code!!! 20-Dec-13 13:11pm    
yup but code syntax will differ only
Member 10479432 20-Dec-13 13:13pm    
actually i'm new to this. can you show me how to start with it?
string value=Dropdownlist.selectedvalue
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900