Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Hold a page before redirecting it to another one.

Hold a page before redirecting it to another one.

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Ersan Ercek
    wrote on last edited by
    #1

    What I am trying to do is to keep client on a webform where he/she stays for a while before redirecting him/her to another page. I put a sleep to a page load however page sleeps before displaying the information and redirects as soon as sleep process finishes. SO nothing can be seen? How could I come over this problem.

    A 1 Reply Last reply
    0
    • E Ersan Ercek

      What I am trying to do is to keep client on a webform where he/she stays for a while before redirecting him/her to another page. I put a sleep to a page load however page sleeps before displaying the information and redirects as soon as sleep process finishes. SO nothing can be seen? How could I come over this problem.

      A Offline
      A Offline
      Antony M Kancidrowski
      wrote on last edited by
      #2

      You could use javascript. Set a timeout which calls a function to redirect the page. This will all happen client side and therefore you give the end user the page to view.

      Ant. **I'm hard, yet soft.
      I'm coloured, yet clear.
      I'm fruity and sweet.
      I'm jelly, what am I? Muse on it further, I shall return!

      **- David Walliams (Little Britain)

      E 1 Reply Last reply
      0
      • A Antony M Kancidrowski

        You could use javascript. Set a timeout which calls a function to redirect the page. This will all happen client side and therefore you give the end user the page to view.

        Ant. **I'm hard, yet soft.
        I'm coloured, yet clear.
        I'm fruity and sweet.
        I'm jelly, what am I? Muse on it further, I shall return!

        **- David Walliams (Little Britain)

        E Offline
        E Offline
        Ersan Ercek
        wrote on last edited by
        #3

        I am sending the page to be redirected as querystring. how will I send this information to java script

        A 1 Reply Last reply
        0
        • E Ersan Ercek

          I am sending the page to be redirected as querystring. how will I send this information to java script

          A Offline
          A Offline
          Antony M Kancidrowski
          wrote on last edited by
          #4

          You have to parse the href yourself to get the value. A quick google gave this. http://www.netlobo.com/url_query_string_javascript.html[^] I hope that helps. You can then redirect based on the parameter returned. window.location = url where url is the reutrned query string.

          Ant. **I'm hard, yet soft.
          I'm coloured, yet clear.
          I'm fruity and sweet.
          I'm jelly, what am I? Muse on it further, I shall return!

          **- David Walliams (Little Britain)

          E 1 Reply Last reply
          0
          • A Antony M Kancidrowski

            You have to parse the href yourself to get the value. A quick google gave this. http://www.netlobo.com/url_query_string_javascript.html[^] I hope that helps. You can then redirect based on the parameter returned. window.location = url where url is the reutrned query string.

            Ant. **I'm hard, yet soft.
            I'm coloured, yet clear.
            I'm fruity and sweet.
            I'm jelly, what am I? Muse on it further, I shall return!

            **- David Walliams (Little Britain)

            E Offline
            E Offline
            Ersan Ercek
            wrote on last edited by
            #5

            Thanks alot... It worked

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups