Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I create popup using usercontrol, now i want to use this usercontrol to another usercontrol.


Anybody help to me.

Thanks,
Posted

 
Share this answer
 
Comments
Member 11398751 19-Mar-15 4:50am    
Hi, I'm asking how to access to the one usercontrol to another usercontrol.
class MyUserControl1:UserControl
{
public DropDownList MyDropDownList
{
get{
return this.DropDownList1;}
}
}
protected void nameInUserControl2()
{
MyUserControl1 myUserControl1 = (MyUserControl1)Page.FindControl("MyUserControl1");
DropDownList dropDown = myUserControl1.MyDropDownList; }
 
Share this answer
 
Comments
Deepu S Nair 19-Mar-15 5:04am    
?
CHill60 19-Mar-15 7:18am    
Please don't post multiple solutions to a question - use the Improve solution link to add details if you need to.
A code dump is also of little use if you don't explain how it solves the problem (in this case it doesn't)

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