VS.NET Bug?

A

Andrea Williams

In my ASP page class I an inheriting from a base class that inherits from
System.Web.UI.Page. But inorder to edit HTML in the ASPX file, I have to
switch the inheritance back to System.Web.UI.Page so that I can get
intellesense. However, I have noticed that sometimes when I switch back to
the inherited Base Class, the following line:

this.Load += new System.EventHandler(this.Page_Load);

has been deleted from the InitializeComponent method, so now my page is
broken and the Page_Load method isn't called. It doesn't always happen, and
I haven't been able to solidify repro steps, but it's very annoying. I
have, in the passed, had all my event setup lines in that method disappear
(custom and designer setup) and end up having to re-create them. Not fun!

Has anyone else experienced this and if so, what did you do to stop the
behavior?

Andrea
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top