473,395 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

I have 3 classes derived from webcontrol and...

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...
Nov 15 '05 #1
1 1636
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" <an*******@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
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...


Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Brad Kartchner | last post by:
I'm attempting to write a program with several child classes derived from a single parent class. The parent class has a couple of variables that need to be present in each of the child classes. ...
3
by: Dave Opstad | last post by:
According to the documentation the __setslice__ method has been deprecated since Python 2.0. However, if I'm deriving classes from the builtin list class, I've discovered I can't really ignore...
3
by: Jeremy Sanders | last post by:
Hi - I'm trying to subclass a dict which is used as the globals environment of an eval expression. For instance: class Foo(dict): def __init__(self): self.update(globals()) self = 42
2
by: Lars-Erik Aabech | last post by:
Hi! I've got a small challenge with my class library. I've got an abstract base class with some protected fields. It has two derived classes, and it should be possible to cast these classes to...
1
by: Aidan Glendye | last post by:
Hi, I am trying to store various objects within session. Due to the site being hosted in a web farm we are going to have to use either State Server or SQL Server to persist the data in...
0
by: Iain | last post by:
In researching something else, I came across a comment about problems with problems with attributes in classes derived from ICollection. I seem to have hit this problem a while ago (I've been on...
6
by: Vijairaj R | last post by:
Hi, I have a requirement to findout all the classes that are derived from a single base class. This is how I do it currently. class Test: case = class Test1(Test):
3
by: zlf | last post by:
I am asked to complete a COM+ component, there is a class A derived from ServicedComponent. However, when executing , exception is thrown. Messaged: Unhandled Exception:...
3
by: ramsisiv | last post by:
I know that it is possible but, if the abstract class has a virtual function print, that prints info about the objekt and the derived classes each have theire own version of print, will a print...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.