M
musosdev
Hi
I have a class on my Intranet site that provides me with a crash popup type
page, and sends me an email containing bug information, etc.
This works fine, from any page I can call my class with an error code and a
reference to the current System.Web.UI.Page, like so...
ACR crash = new ACR("error_code", this);
The overridden ACR function is defined as...
public ACR(string e, System.Web.UI.Page this)
The problem comes when I try and call this from a WebControl inside another
page. Obviously the webcontrol isnt a System...Page, so it won't compile.
When I'm in the webcontrol, how can I pass the current System.Web.UI.Page
that the control is residing on?
Thanks!
Dan
I have a class on my Intranet site that provides me with a crash popup type
page, and sends me an email containing bug information, etc.
This works fine, from any page I can call my class with an error code and a
reference to the current System.Web.UI.Page, like so...
ACR crash = new ACR("error_code", this);
The overridden ACR function is defined as...
public ACR(string e, System.Web.UI.Page this)
The problem comes when I try and call this from a WebControl inside another
page. Obviously the webcontrol isnt a System...Page, so it won't compile.
When I'm in the webcontrol, how can I pass the current System.Web.UI.Page
that the control is residing on?
Thanks!
Dan