Redirect delay or stall ?

Posted on 2006-04-14
Last Modified: 2008-03-10
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...";


Question by:kvnsdr
    LVL 14

    Accepted 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:


    LVL 1

    Author Comment

    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

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now