[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Redirect delay or stall ?

I would like to display a breif message just before redirecting a new user from the current page (register.asp) and back to the login.aspx... About a 3 second delay is acceptable. Here's the code I have now....

The current code below does not show the message and does not seem to delay..........

 public void RegisterUser_Click(Object sender, EventArgs e)
        if (!Page.IsValid)
            MsgReg.Text = "Some required fields are invalid.";

          // Do registration stuff

       MsgEmailSent.Text = "Login information has been sent...";


1 Solution
Add this to your html code instead inside the head tags:

<META HTTP-EQUIV="Refresh" CONTENT="3; URL=../login.aspx">

and in the code behind get rid of:


kvnsdrAuthor Commented:
I tried it, but it redirects users back to the login.aspx before they are done filling out the form. I could lengthen the delay, but I would be guessing how long they should wait or how long they will spend filling out the form......

I need to controll the delay within the code-behind for sure..... somehow.......

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now