Hi,
I am using response.redirect to redirect the page from one to another page & previously it was working fine. My calling method is to call login page & after checking user id & password, it then redirect to company login page & after checking company user id password it then redirect to default.aspx page. But now the problem is, it is not redirecting to company login page rather it sticks there only displaying no error . If I am using server.transfer in place of response.redirect , it then redirects to company login page, but it can't redirect to default.aspx page from company login, it again sticks there. Now the code is written as
Login.aspx page
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
try
{
Response.Redirect("~/CompanyLogin.aspx");
Response.End();
}
catch (Exception)
{
throw;
}
}
CompanyLogin.aspx
protected void Btn1_Click1(object sender, EventArgs e)
{
try
{
Response.Redirect("~/Default.aspx");
Response.End();
}
catch (Exception)
{
throw;
}
}
Urgently provide any solution.
thanks
regards
Thanks
Regards