protected void Application_Error(Object sender, EventArgs e)
{
//this is when they type an incorrect url but still hit our site
Exception Ex = Server.GetLastError().GetBaseException();
if (Ex.GetType().Name.Equals("HttpException"))
{
Response.Redirect("~/Welcome.aspx");
}
else
{ &n ...
Go to the complete details ...