472,974 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Losing web form event handlers in VS.Net 2003

On many occasions (but without an obvious pattern), we (it's not just me!) encounter a problem with VS.Net losing event handlers for controls, e.g. the auto-generated this.button.click += new <handler stuff> gets dropped from InitializeComponent. The effect is that a web form that used to do something when you clicked on the button is now inert. We tried a workaround of manually setting our event handlers in a separate initialisation method but this was also errorprone as the handlers don't appear in the event property window

I'd be very grateful for any solutions or comments from fellow sufferers
Best wishes.
Nov 18 '05 #1
2 1039
Yes I get the same thing if I have nested datagrids.
I have to code all the events for all datagrids.
A
"Kevin Waite" <an*******@discussions.microsoft.com> wrote in message
news:F7**********************************@microsof t.com...
On many occasions (but without an obvious pattern), we (it's not just me!) encounter a problem with VS.Net losing event handlers for controls, e.g. the
auto-generated this.button.click += new <handler stuff> gets dropped from
InitializeComponent. The effect is that a web form that used to do
something when you clicked on the button is now inert. We tried a
workaround of manually setting our event handlers in a separate
initialisation method but this was also errorprone as the handlers don't
appear in the event property window.
I'd be very grateful for any solutions or comments from fellow sufferers.
Best wishes.

Nov 18 '05 #2
I have also had this problem. But it has happened to me because I would move a button on my webpage and then it would lose its handles. Then all I do is click on the button again and they are back in the code.
Nov 18 '05 #3

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

Similar topics

8
by: Dennis C. Drumm | last post by:
I have a class derived from a SortedList called SystemList that contains a list of objects indexed with a string value. The definition of the objects contained in the SortedList have a boolean...
8
by: Tim Geiges | last post by:
Since I am being challenged with learning c# I figured I could pass some of the pain on to you guys :-) I have another question(this one is important for me to fix before I can get my app to Beta)...
1
by: Matt Sogla | last post by:
I have written an ASP.NET app with C# code-behind. While modifying the code and testing it, I find that I will sometimes lose all event handlers on the page(SortCommand, PageIndexChanged, Load,...
2
by: Joel Barsotti | last post by:
When I switch between design veiw and html view, I loose all the event handlers in my C# file. What do I need to update to fix this?
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
5
by: Alain Filiatrault | last post by:
Hi, I need to implement a "form.dirty" feature on a VB .NET form not related to a database. I need to know if any of the items (Textboxes, combo, listboxes, ...) was changed. Is there a quick...
1
by: Mian Mahboob | last post by:
hi At Runtime i add a Form in designing time panel Control. on that form i add couple of user controls. i want to comuncated each of usercontrol's on my Form which is execute on Runtime...
7
by: Michael D. Ober | last post by:
Is there anyway to raise an event from a class and require that any program using that class (not just inheritance) have an event handler for specific events in the class? In my case, some events...
3
by: bsturg21 | last post by:
Hello, I have a windows form that has a series of linklabels on it, and I need to have each linklabel, when clicked, open a separate windows form that has a single paramter passed into it. The...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.