i have
void Application_Err or(object sender, EventArgs e)
{
Server.Transfer ("default.aspx" );
}
in global.asax
now when i use any state bags like Session["sno"] = "new";
whenever the user clicks on link to a page that does not exist on the server, Application_Err or() executes but Server.Transfer does not and it shows that the page cannot be found and does not transfer to default.aspx.
why is Server.Transfer not getting executed ??
void Application_Err or(object sender, EventArgs e)
{
Server.Transfer ("default.aspx" );
}
in global.asax
now when i use any state bags like Session["sno"] = "new";
whenever the user clicks on link to a page that does not exist on the server, Application_Err or() executes but Server.Transfer does not and it shows that the page cannot be found and does not transfer to default.aspx.
why is Server.Transfer not getting executed ??
Comment