Rex the Strange wrote:
Hi All,
Is it possible to create a property in a usercontrol that is a
reference to another usercontrol so that you could say (for example):
<user:control1 id='control1' runat='server' />
<user:control2 id='control2' runat='server' othercontrol='control1' />
???
tia,
rts
Hi,
I am sure about keeping other controls reference in code .... Because i
used it many times.
But never need to use in html...
///in user control....
private UserControl _userControl;
public UserControl OtherControl
{
get { return _userControl; }
set { _userControl = value; }
}
///in master page....
Footer1.OtherControl = Header1;
Masudur
Kaz Software Ltd
www.kaz.com.bd