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... 1 1650
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*******@disc ussions.microso ft.com> wrote in message
news:59******** *************** ***********@mic rosoft.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... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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. However, I need the objects
created from each of the derived classes to share these variables with other
objects of the same class but not with other objects of the other derived
classes.
Let me try to clarify with an example:...
|
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 __setslice__.
Have a look at this snippet:
----------------------------------------------------
>>> class V(list):
.... def __setitem__(self, key, value):
.... if isinstance(key, slice):
.... print "Slice:", key.start, key.stop,...
|
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
|
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 each other. The variables to be
persisted are the ones from the base class.
It is possible to cast upwards, but I'm not allowed to cast downwards. The
only solution I found was to create explicit casting operators on each of
the derived classes....
|
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 session. All of the objects are classes which
inherit from a typed dataset.
Looking at MSDN I have found the following two (what I
believe to be) relevent statements (from article Object
| |
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 something else).
So if I derive a class from List<Dictionary>, for example and attempt to
have a member with an XmlAttributeAttribute, it fails to serialize /
deserialize the attribute.
Is there any way round this?
|
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):
|
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:
System.EnterpriseServices.ServicedComponentException:
Classes derived from ServicedComponent do not support constructors
with arguments
|
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 funktion in the ADT that prints the info in the current objekt by using its print function use the print function from the superclass or from the derived class(es)? I'm not shore if virtual helps me here sense the nodes in the ADT take a pointer to an...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |