locked
NEW WEBPAGE at time RRS feed

  • Question

  • How to send user to a new webpage at a specified time lapsed after opening the current page using a C# code just like (imaginary pseudo code)

    OnTime_EventHandler(int DateTime timelapsed)

    {

    Response.Redirect("tothe_new_pagename")

    }//pseudo over

    as we write

    On_Button1_click(sender,object)

    {

      Response.Redirect("__secondDefault_page");

    } ?

    Thanks to all.

     

    • Moved by Paul Zhou Friday, December 2, 2011 5:51 AM off-topic (From:.NET Base Class Library)
    Thursday, December 1, 2011 5:44 PM

Answers

  • Hi,

     

    Welcome to the MSDN forum.

     

    According to your description, I'd like to move your thread to off-topic because it is a problem related to ASP.NET. You may post thread in ASP.NET Forum. There are more experts in that forum so that you may get more useful help there.

     

    Thank you for your posting and understanding.

    Have a nice day.


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    • Marked as answer by premavalamb Saturday, December 3, 2011 6:55 PM
    Friday, December 2, 2011 5:51 AM

All replies

    1. This is the wrong forum.  ASP.net questions go into http://forums.asp.net.
    2. You cannot do this in C# alone.  Use Javascript.

    Jose R. MCP
    Thursday, December 1, 2011 6:06 PM
  • Hi,

     

    Welcome to the MSDN forum.

     

    According to your description, I'd like to move your thread to off-topic because it is a problem related to ASP.NET. You may post thread in ASP.NET Forum. There are more experts in that forum so that you may get more useful help there.

     

    Thank you for your posting and understanding.

    Have a nice day.


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    • Marked as answer by premavalamb Saturday, December 3, 2011 6:55 PM
    Friday, December 2, 2011 5:51 AM