redirect after sometime

Discussion in 'ASP .Net' started by rn5a@rediffmail.com, Sep 29, 2006.

  1. Guest

    A logged in user clicks a Logout link which takes him to Logout.aspx
    where in I am using the SignOut method of the FormsAuthentication
    object to logout the user. What I want is as soon as the user is taken
    to Logout.aspx, apart from logging him out, a Label should be displayed
    to the user saying

    You have been logged out successfully

    & after, say, 15 seconds the user should automatically be taken to the
    home page of the web site. Using ASP.NET, is there any way by which the
    user can be redirected from Logout.aspx to the home page automatically
    after 15 seconds?

    I know this can be done using JavaScript but I did like to know whether
    this can be done using ASP.NET.
    , Sep 29, 2006
    #1
    1. Advertising

  2. Just output meta redirect tags with your page saying You have been logged
    out successfully, give them a duration of 15 seconds


    --
    --
    Regards

    John Timney (MVP)
    VISIT MY WEBSITE:
    http://www.johntimney.com


    <> wrote in message
    news:...
    >A logged in user clicks a Logout link which takes him to Logout.aspx
    > where in I am using the SignOut method of the FormsAuthentication
    > object to logout the user. What I want is as soon as the user is taken
    > to Logout.aspx, apart from logging him out, a Label should be displayed
    > to the user saying
    >
    > You have been logged out successfully
    >
    > & after, say, 15 seconds the user should automatically be taken to the
    > home page of the web site. Using ASP.NET, is there any way by which the
    > user can be redirected from Logout.aspx to the home page automatically
    > after 15 seconds?
    >
    > I know this can be done using JavaScript but I did like to know whether
    > this can be done using ASP.NET.
    >
    John Timney \(MVP\), Sep 29, 2006
    #2
    1. Advertising

  3. I meant meta refresh

    <meta http-equiv="refresh" content="15; URL="http://homepageaddress">

    --
    Regards

    John Timney (MVP)
    VISIT MY WEBSITE:
    http://www.johntimney.com

    "John Timney (MVP)" <> wrote in message
    news:...
    > Just output meta redirect tags with your page saying You have been logged
    > out successfully, give them a duration of 15 seconds
    >
    >
    > --
    > --
    > Regards
    >
    > John Timney (MVP)
    > VISIT MY WEBSITE:
    > http://www.johntimney.com
    >
    >
    > <> wrote in message
    > news:...
    >>A logged in user clicks a Logout link which takes him to Logout.aspx
    >> where in I am using the SignOut method of the FormsAuthentication
    >> object to logout the user. What I want is as soon as the user is taken
    >> to Logout.aspx, apart from logging him out, a Label should be displayed
    >> to the user saying
    >>
    >> You have been logged out successfully
    >>
    >> & after, say, 15 seconds the user should automatically be taken to the
    >> home page of the web site. Using ASP.NET, is there any way by which the
    >> user can be redirected from Logout.aspx to the home page automatically
    >> after 15 seconds?
    >>
    >> I know this can be done using JavaScript but I did like to know whether
    >> this can be done using ASP.NET.
    >>

    >
    >
    John Timney \(MVP\), Sep 29, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. YesBalala
    Replies:
    1
    Views:
    496
    YesBalala
    Feb 13, 2004
  2. =?Utf-8?B?SnVsaWE=?=
    Replies:
    4
    Views:
    749
    =?Utf-8?B?SnVsaWE=?=
    Nov 7, 2004
  3. vizlab
    Replies:
    3
    Views:
    4,184
    Michael Bar-Sinai
    Oct 17, 2007
  4. KLEIN Stephane
    Replies:
    0
    Views:
    324
    KLEIN Stephane
    Sep 24, 2007
  5. Curious89
    Replies:
    0
    Views:
    909
    Curious89
    Feb 20, 2010
Loading...

Share This Page