Losing web form event handlers in VS.Net 2003

G

Guest

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.
 
A

Andrew de la Harpe

Yes I get the same thing if I have nested datagrids.
I have to code all the events for all datagrids.
A
Kevin Waite said:
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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top