Create a property that is a usercontrol

  • Thread starter Rex the Strange
  • Start date
R

Rex the Strange

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
 
M

Masudur

Rex said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top