How can I reference this.Page and this.GetType() from the MasterPage from a code file without having to pass them?
I have been doing the following from the masterpage or child page, but a scenario has arisen where my alert method is called from class in a codefile and not the code behind an aspx page so there is no "this." to reference.
Growl.Alert(Error.Message, this.Page, this.GetType());
I have reduced the Alert method to its core for the sake of brevity.
public static void Alert(string message, GrowlLevel gLevel, GrowlTitle gTitle, GrowlType gType, Control thisPage, Type thisGetType) { ScriptManager.RegisterStartupScript(thisPage, thisGetType, "Not Used", "Growl('" + gLevel + "', '" + gTitle + "', '" + message + "','" + gType + "');", true); } ScriptManager.RegisterStartupScript() requires Page and Type or Control and Type.
Anyone have any ideas?< ...

Go to the complete details ...