I have 3 classes derived from webcontrol and...

G

Guest

Hi to all...

I have 3 classes derived from webcontrol.

I the first i have two dropdownlist, in the second i have some buttons, and the third its the webcontrol that are instanciate the two first...

I would like to know what is the best way to comunicate elements that are placed in differents webcontrol... for instance...

if i have a webcontrol that has a button, and another webcontrol that has a label, what its the best option to follow if i want that if i click the button, show me in the label the phrase "hellow world"...

Thanks in advance.
Owatona...
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

I think the container control hosting the button and the label should
subscribe to the button's Click event and update the label's text
accordingly. A web page is a "special kind" of a webcontrol, so it can play
the role of the container control as well.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Owatona said:
Hi to all...

I have 3 classes derived from webcontrol.

I the first i have two dropdownlist, in the second i have some buttons,
and the third its the webcontrol that are instanciate the two first...
I would like to know what is the best way to comunicate elements that are
placed in differents webcontrol... for instance...
if i have a webcontrol that has a button, and another webcontrol that has
a label, what its the best option to follow if i want that if i click the
button, show me in the label the phrase "hellow world"...
 

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

Top