Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms Authentication

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
GB
I am trying to pause redirect after login.

I have the following code which works but doesn't pause so I can display a message:

Code:
FormsAuthentication.RedirectFromLoginPage(txtEmail.Text, False)
Response.Redirect("babysitters/home.aspx")

I tried

Code:
FormsAuthentication.RedirectFromLoginPage(txtEmail.Text, False)
            'Response.AddHeader("Refresh", "4;URL=babysitters/home.aspx")
            Response.Redirect("babysitters/home.aspx")

But always redirects to the default homepage and doesnt pause
 
Second bit of code meant to be:

Code:
FormsAuthentication.RedirectFromLoginPage(txtEmail.Text, False)
            Response.AddHeader("Refresh", "4;URL=babysitters/home.aspx")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top