473,770 Members | 4,553 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detecting Chnages in a Control Collection

I have a Web form made up of several panels of controls. On postback, I need to detect if any of the controls were updated. Is there something like a "Panel.Chan ged" event or am I stuck iterating through the control collection? Thanks in advance for any help...
Nov 15 '05 #1
3 1767
Hi Joe,

There is not such a feature, you need to manually detect which control
changed.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Joe Loyd" <jo******@us.di data.com> wrote in message
news:7F******** *************** ***********@mic rosoft.com...
I have a Web form made up of several panels of controls. On postback, I

need to detect if any of the controls were updated. Is there something like
a "Panel.Chan ged" event or am I stuck iterating through the control
collection? Thanks in advance for any help...
Nov 15 '05 #2
ugh, that sucks .... but thank you Ignacio, for the help!...

----- Ignacio Machin ( .NET/ C# MVP ) wrote: ----

Hi Joe

There is not such a feature, you need to manually detect which contro
changed

Cheers

--
Ignacio Machin
ignacio.machin AT dot.state.fl.u
Florida Department Of Transportatio

"Joe Loyd" <jo******@us.di data.com> wrote in messag
news:7F******** *************** ***********@mic rosoft.com..
I have a Web form made up of several panels of controls. On postback,

need to detect if any of the controls were updated. Is there something lik
a "Panel.Chan ged" event or am I stuck iterating through the contro
collection? Thanks in advance for any help..

Nov 15 '05 #3
Hi Joe,

Well in fact it's not, the panel is transformed on a DIV tag in the client,
it would be complex to add this functionality and frankly I think that it
has no big use ( I havent need it until now )

Now if you really need it you could try to implement it by your own. I
assume that you have a number of web controls inside the panel that do not
have the autosubmit set, if this is so you could try and change them from
webcontrols to HtmlControls equivalents, and using the Attribute collection
you could add a handler for the correct event ( onChange usually ) and in
the handler of it keep track of what control changed ( I would do this by
updating a hidden control )
using this technique you could know in the postback what controls were
changed.

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Joe Loyd" <an*******@disc ussions.microso ft.com> wrote in message
news:93******** *************** ***********@mic rosoft.com...
ugh, that sucks .... but thank you Ignacio, for the help!....

----- Ignacio Machin ( .NET/ C# MVP ) wrote: -----

Hi Joe,

There is not such a feature, you need to manually detect which control changed.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Joe Loyd" <jo******@us.di data.com> wrote in message
news:7F******** *************** ***********@mic rosoft.com...
> I have a Web form made up of several panels of controls. On
postback, I need to detect if any of the controls were updated. Is there something like a "Panel.Chan ged" event or am I stuck iterating through the control
collection? Thanks in advance for any help...

Nov 15 '05 #4

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

Similar topics

4
2190
by: Michael Albanese | last post by:
I am trying to build a user control that will allow a user to select a date from a calendar. I have to code that will run on the calendar's SelectionChanged event, but i am at a loss to return the data to the correct text box. The question is...How do I detect the Form Name programatically from a user control that is included on a page. i.e. - me.formname....? Thanks in advance for any help.
2
3182
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the problems that I have encountered to date and the solutions (if any) that I found. http://users.adelphia.net/~brianpclab/ServerControlCollectionIssues.htm This page also has all of the source code in a compressed file that you are free to download...
1
1274
by: Sharkbait | last post by:
We are trying to record browser information when a customer comes to our site. I have been able to get most basic browser information using both asp and asp.net. The only thing I’m missing is the ability to detect plug-ins. Does anyone know how I can access the plug-in collection in IE? I have not found any clear way of doing it on the internet I’m starting to think I am headed down the wrong path. Maybe IE doesn‘t call it a plug-in...
1
5586
by: Tuong | last post by:
I have a situation where i have a form that contains a webbrowser control. With this I was able to implement an application that can browse websites. One particular website i visited opens up another web page in a new window and then closes it. I was able to control this action by detecting the 'NewWindow' event and opening the webpage in my own application. Now the problem i have come across is that when the webpage that was opened in...
2
4924
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is being updated by some other process through remoting. When the page loads, I init the tree, and in my browser I can see the initialized tree. The problem is that every time that I receive update to tree from the remote process,
0
1344
by: Rene Aichinger | last post by:
Hi, I've created a server control (it inherits from WebControl) wich has a property of genertic collection type. The type of the generic collection is NavigationItem, a little class I've created... The declaration of the collection property is that:
3
6140
by: Greg | last post by:
The LostFocus event of datagrids is fired when the focus is added to a cell. How do you go about detecting it when the control as a whole has lost focus to another control? Slightly confused by this! Greg.
5
2343
by: paul.hester | last post by:
Hi all, I have a custom control with an overridden Render method. Inside this method I'm rendering each control in its collection using their RenderControl method. However, I'm running into a problem in this scenario: <myprefix:mycontrol runat="server"> <%= SomeVariable %> </myprefix:mycontrol>
1
24189
by: wwwords | last post by:
Is there a general method for detecting that a user has changed the record currently visible on a form, whether this is by hitting PgUp or PgDn or clicking on a navigation button, even if no change has been made in any control? I'm thinking of a situation in which a number of records have been entered on a form and the user is cycling through them to check the data entered. I want to be able to detect this and update certain information...
0
9439
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,...
0
10237
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9882
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 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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8905
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, 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...
1
7431
isladogs
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...
0
5326
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...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2832
bsmnconsultancy
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...

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.