473,396 Members | 1,894 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,396 software developers and data experts.

ASP.NET: Disconnected Event Handlers

I am running Visual Studio 2003 v7.1.3088 with .NET 1.1.4322 SP1 and am
having a very annoying problem. Every so often while developing ASP.NET
applications my buttons on a form will loose their event handlers and
when i try to test the page clicking on the button does nothing but
refresh the page.

i searched all over the web using Google and Microsoft's search engines
(including MSDN) and cant seem to find a solution. Various people talk
about this problem. One person claims there is an MS Patch, and another
says it was fixed in BETA.

One person did say that this has something to do with the fact that i
use Source Safe (VSS 6.0D 31222), but i dont exactly have a choice on
wether or not to use.

If anyone has any ideas, please let me know.

Nov 19 '05 #1
4 1057
VisualStudio occasionaly garbles the code in InitializeComponent() (which
is where all the delegates are typically wired up). It's a known issue (at
least I keep it in mind when I'm doing development). I don't know if there's
a fix or not.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am running Visual Studio 2003 v7.1.3088 with .NET 1.1.4322 SP1 and
am having a very annoying problem. Every so often while developing
ASP.NET applications my buttons on a form will loose their event
handlers and when i try to test the page clicking on the button does
nothing but refresh the page.

i searched all over the web using Google and Microsoft's search
engines (including MSDN) and cant seem to find a solution. Various
people talk about this problem. One person claims there is an MS
Patch, and another says it was fixed in BETA.

One person did say that this has something to do with the fact that i
use Source Safe (VSS 6.0D 31222), but i dont exactly have a choice on
wether or not to use.

If anyone has any ideas, please let me know.


Nov 19 '05 #2
VisualStudio occasionaly garbles the code in InitializeComponent() (which
is where all the delegates are typically wired up). It's a known issue (at
least I keep it in mind when I'm doing development). I don't know if there's
a fix or not.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am running Visual Studio 2003 v7.1.3088 with .NET 1.1.4322 SP1 and
am having a very annoying problem. Every so often while developing
ASP.NET applications my buttons on a form will loose their event
handlers and when i try to test the page clicking on the button does
nothing but refresh the page.

i searched all over the web using Google and Microsoft's search
engines (including MSDN) and cant seem to find a solution. Various
people talk about this problem. One person claims there is an MS
Patch, and another says it was fixed in BETA.

One person did say that this has something to do with the fact that i
use Source Safe (VSS 6.0D 31222), but i dont exactly have a choice on
wether or not to use.

If anyone has any ideas, please let me know.


Nov 19 '05 #3
The team I work with used to run into this once in a while.
I think that cut and paste of a button control drops the handlers.

e.g.Say you want to relocate a button on your form:
If the control is in an HTML cell you cut it and then paste it into a
different cell.
I think this causes the handles statement to be dropped.

--
Joe Fallon


"MrFile" <mr**********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
I am running Visual Studio 2003 v7.1.3088 with .NET 1.1.4322 SP1 and am
having a very annoying problem. Every so often while developing ASP.NET
applications my buttons on a form will loose their event handlers and
when i try to test the page clicking on the button does nothing but
refresh the page.

i searched all over the web using Google and Microsoft's search engines
(including MSDN) and cant seem to find a solution. Various people talk
about this problem. One person claims there is an MS Patch, and another
says it was fixed in BETA.

One person did say that this has something to do with the fact that i
use Source Safe (VSS 6.0D 31222), but i dont exactly have a choice on
wether or not to use.

If anyone has any ideas, please let me know.

Nov 19 '05 #4
Since my company has a support contract with MS, i will probably call
them asking for a fix. I cant be the only one being driven nuts by this.

Nov 19 '05 #5

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

Similar topics

10
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script...
3
by: foobar | last post by:
I have created a .net .aspx web page and would like to render the object after setting some properties. I would also like to have event handlers in the parent window that could respond to events...
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...
17
by: Fred Nelson | last post by:
Hi: I'm trying to implement an overall error handler in my VB.NET windows application. I need to place an "On Error Goto" in "Sub Main". I have tried to create a Sub Main and have had no...
5
by: Juan T. Llibre | last post by:
OK, guys, usually I answer questions instead of asking them, but this thing has me scratching my head. Why is the default for AutoEventWireup different for C# and VB.NET ? In VS 2005, if I...
5
by: Richard Grant | last post by:
Hi, I need to "save" in a variable the event handler sub of a control's event, then perform some process, and finally "restore" the originally saved event handler. Example in pseudo-code: 1)...
7
by: sam.m.gardiner | last post by:
I'm working with VB.NET events and I want a way to disconnect all the handlers of an event. I want to do this in the object that is the source of the event. This is slightly tricky in VB.Net as the...
0
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
7
by: Jason Kester | last post by:
Best I can tell, there are three basic ways you can deal with global error handling in ASP.NET. Namely: 1. Derive all your pages from a custom Page class, and override OnError() 2. Specify a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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.