Hi,
I made custom web control. this control have an Event like "TestEvent" ,
How can I find out if properties of other controls of parent Page is
changed inside this event when I fire that event ?
I need to know which controls changed during TestEvent. I can not
compare them before and after TestEvent, because it's not possible to
implement compare for all kind of possible controls that Page object
may contain.
-madani 2 1524
How exactly would you expect to be able to get this type of information?
One idea is to have an argument class inheriting from EventArgs that your
event handler requires. In there, is a collection property. The event
handler is responsible for adding every control that it changes to that
collection. Whatever raised the event, can then check the collection
afterwards and know that every control in it has been modified.
"madani" <ma****@gmail.c om> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. . Hi,
I made custom web control. this control have an Event like "TestEvent" , How can I find out if properties of other controls of parent Page is changed inside this event when I fire that event ?
I need to know which controls changed during TestEvent. I can not compare them before and after TestEvent, because it's not possible to implement compare for all kind of possible controls that Page object may contain.
-madani
Hi,
I don't want to force user to add controls that changed to a
collection, I'm trying to find out a way to find changes, indivisible
from user. My idea was make an array of checksum of rendered controls
before calling event handler, then after calling event handler, I will
render controls and get checksum again, and compare them with old
checksums, but the problem is that controls can not be rendered alone,
they need "Form" tag and etc. There is a control that actually done
this, but the source is not provided. So it's not possible to do it.
But I'm looking for the way it done this.
regards,
-madani
Marina wrote: How exactly would you expect to be able to get this type of information?
One idea is to have an argument class inheriting from EventArgs that your event handler requires. In there, is a collection property. The event handler is responsible for adding every control that it changes to that collection. Whatever raised the event, can then check the collection afterwards and know that every control in it has been modified.
"madani" <ma****@gmail.c om> wrote in message news:11******** **************@ o13g2000cwo.goo glegroups.com.. . Hi,
I made custom web control. this control have an Event like "TestEvent" , How can I find out if properties of other controls of parent Page is changed inside this event when I fire that event ?
I need to know which controls changed during TestEvent. I can not compare them before and after TestEvent, because it's not possible to implement compare for all kind of possible controls that Page object may contain.
-madani This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ben Taylor |
last post by:
Hi,
I am experiencing a very strange problem with VC++.NET
2002 and I'm hoping somebody can tell me what I'm doing
wrong or whether it's a bug.
I created an ActiveX control and added some properties,
and added some controls to the propertiy page and linked
the properties to them, at this point they were working
fine - the on changed event...
|
by: Johann Blake |
last post by:
I am creating PictureBox controls at runtime in code and not at design
time. These controls do get created and appear. These controls have a
form as their container. Not all of the controls I create are shown at
the same. The logic of my code is to sometimes show certain controls
while hiding others and then later on reversing this.
For...
|
by: Edward |
last post by:
hi, everyone,
my Page_Load fill tblProducts with some TextBox.
<form runat="server">
<asp:Table id="tblProducts" runat="server"></asp:Table>
<hr>
<asp:Button id="Button1" onclick="Button1_Click" runat="server"
Text="Button"></asp:Button>
<hr>
<hr>
|
by: Sacha Korell |
last post by:
I'm trying to load a drop-down list with all DropDownList control names from
another page.
How would I be able to find those DropDownList controls? The FindControl
method will only find a certain control by id, but I want to find all
controls of a certain type (DropDownList in this case).
Is there an easier way than to get a control count...
|
by: djscratchnsniffing |
last post by:
i know you can access an ascx's properties/methods from an aspx file.
Let's say you have an aspx file with two code-behind files(ascx files).
Can you access one of the ascx file's properties/methods from the other
ascx file?
| |
by: Christophe Peillet |
last post by:
I have a CompositeControl with two types of properties:
1.) Mapped Properties that map directly to a child control's properties
(ex.: this.TextboxText = m_txt.Text). These properties are handled by their
underlying classes (such as the TextBox control), and are not persisted by me.
2.) Unique Properties that don't map directly and are...
|
by: Mike Hofer |
last post by:
In my ASP.NET application, *one* page would not render in the
application. All others would show up just fine, but when the user
clicked the button to browse to this one page, I'd get a nasty error
message from IE: "Cannot find server or DNS error."
I set some break points and determined that the page was being loaded,
but that the error...
|
by: |
last post by:
I have made some user controls with custom properties. I can set those
properties on instances of my user controls, and I have programmed my user
control to do useful visual things in response to how those properties are
set.
I want to be able to do two other things:
a) add User control instances to my page, filling in the place of...
|
by: Web Search Store |
last post by:
Hello,
I set up a web page with 2 user controls.
In classic asp, the first one did all the declarations, and the second one
used the values, and could reset it.
In ASP.Net so far I can't see how to relate them so this will work.
This user control defines the properties:
|
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...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
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...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
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...
|
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...
|
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...
| |