Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
We have developed a user control where there is the different control in it, Where by selecting dropdown and checkbox list.How to call dropdown selected value in a page.
Posted
Updated 27-Oct-13 18:28pm
v3
Comments
Ag_Sharad 26-Oct-13 12:53pm    
I didnt understand the question, what do u want, those dropdown and checklist are on outer form and grid view in your user control....
JoCodes 26-Oct-13 15:22pm    
Be more specific on your question to get proper response

C#
Dropdownlist ddlsa=(dropdownlist)this.usercontrolname.FindControl("dropdownlistid");

lbltext.Text=ddlsa.selectedValue;

C#

 
Share this answer
 
C#
Dropdownlist ddlsa=(dropdownlist)this.usercontrolname.FindControl("dropdownlistid");

lbltext.Text=ddlsa.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