Hi all,
I am bit new to this ASP.NET.
When the application starts I want to check if there is a specific error. If there is that error then I want to remember that error and then for all the requests to any page of the application, I want to redirect them to a specific error page.
How can I do that in ASP.NET?
This is the code I have come up with:
public class Global : System.Web.HttpApplication
{
private static Exception initializationError = null;
protected void Application_Start(object sender, EventArgs e)
{
InitializeAppBLL initializeAppBLL = null;
try
{
initializeAppBLL = new InitializeAppBLL();
initializeAppBLL.InitializeApp();
}
catch (Exception e)
{
initializationError = e;
}
}
protected void A ...
Go to the complete details ...