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