Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 08, 2011 05:06 PM by nestorarturo
Mar 04, 2011 05:25 PM|LINK
HI.. I want to pass to my control a value to one of its parameter of type DropDownList. Something like:
<uc1:MyControl Id="01" runat="server" OtherControl="ddl1" />
Where "ddl1" is a DropDownList defined in the same page my control resides. How to create this kind of property?
Mar 04, 2011 06:35 PM|LINK
This is just a thought.
Create a string property and method to get the Control
public string CustomList
ViewState["CustomList"] = value;
public DropDownList GetCustomList()
return Page.FindControl(CustomList) as DropDownList;
Mar 08, 2011 05:06 PM|LINK
Sorry for being this late. As usual, the simplest solution are always the best. Thank you.