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. response.redirect

response.redirect

Scheduled Pinned Locked Moved ASP.NET
help
11 Posts 6 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.
  • L Offline
    L Offline
    Lonnie R Thomas
    wrote on last edited by
    #1

    I have a page with nothing but buttons and the only thing they do is a response.redirect(" ") to which ever page. If I let it sit still for roughly 2 minutes and hit the return key I get a blank page. Can anyone pls help me trouble shoot this problem.

    Lonnie R Thomas

    C W A G L 5 Replies Last reply
    0
    • L Lonnie R Thomas

      I have a page with nothing but buttons and the only thing they do is a response.redirect(" ") to which ever page. If I let it sit still for roughly 2 minutes and hit the return key I get a blank page. Can anyone pls help me trouble shoot this problem.

      Lonnie R Thomas

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I assume you never redirect to an empty string. What is the code ?

      Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

      L 1 Reply Last reply
      0
      • L Lonnie R Thomas

        I have a page with nothing but buttons and the only thing they do is a response.redirect(" ") to which ever page. If I let it sit still for roughly 2 minutes and hit the return key I get a blank page. Can anyone pls help me trouble shoot this problem.

        Lonnie R Thomas

        W Offline
        W Offline
        windhopper
        wrote on last edited by
        #3

        Maybe try setting SmartNavigation="true" in your page directive? Or check if your session is timing out...

        "Sex is not the answer, it's the question and the answer is yes"

        L 1 Reply Last reply
        0
        • C Christian Graus

          I assume you never redirect to an empty string. What is the code ?

          Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

          L Offline
          L Offline
          Lonnie R Thomas
          wrote on last edited by
          #4

          one button may do a response.redirect("report1.aspx") and the return button does a response.redirec("reportsmenu.aspx")

          Lonnie R Thomas

          1 Reply Last reply
          0
          • W windhopper

            Maybe try setting SmartNavigation="true" in your page directive? Or check if your session is timing out...

            "Sex is not the answer, it's the question and the answer is yes"

            L Offline
            L Offline
            Lonnie R Thomas
            wrote on last edited by
            #5

            I talked to my webmaster and in IIS the default is 20 minutes and that is what he has set. But the problem I am having is the page does not have to sit for that long to give me a blank page when hitting the return key. Never used smartnavigation but I will research. Thanks for the reply. :)

            Lonnie R Thomas

            L 1 Reply Last reply
            0
            • L Lonnie R Thomas

              I talked to my webmaster and in IIS the default is 20 minutes and that is what he has set. But the problem I am having is the page does not have to sit for that long to give me a blank page when hitting the return key. Never used smartnavigation but I will research. Thanks for the reply. :)

              Lonnie R Thomas

              L Offline
              L Offline
              Lonnie R Thomas
              wrote on last edited by
              #6

              checked on smartnavigation on msdn and they say it is obsolete,

              Lonnie R Thomas

              1 Reply Last reply
              0
              • L Lonnie R Thomas

                I have a page with nothing but buttons and the only thing they do is a response.redirect(" ") to which ever page. If I let it sit still for roughly 2 minutes and hit the return key I get a blank page. Can anyone pls help me trouble shoot this problem.

                Lonnie R Thomas

                A Offline
                A Offline
                Adam Jasper
                wrote on last edited by
                #7

                Have you checked the functionality of the page itself (the page you are re-directing to)? What is the page actually doing? Are you gathering data from a database? It could be that which is taking the time. Adam

                L 1 Reply Last reply
                0
                • A Adam Jasper

                  Have you checked the functionality of the page itself (the page you are re-directing to)? What is the page actually doing? Are you gathering data from a database? It could be that which is taking the time. Adam

                  L Offline
                  L Offline
                  Lonnie R Thomas
                  wrote on last edited by
                  #8

                  Yes. The pages being transferred to have a grid. But the data comes right up with no delay.

                  Lonnie R Thomas

                  1 Reply Last reply
                  0
                  • L Lonnie R Thomas

                    I have a page with nothing but buttons and the only thing they do is a response.redirect(" ") to which ever page. If I let it sit still for roughly 2 minutes and hit the return key I get a blank page. Can anyone pls help me trouble shoot this problem.

                    Lonnie R Thomas

                    G Offline
                    G Offline
                    Guffa
                    wrote on last edited by
                    #9

                    What's the url of the blank page? Does it reload the same page, or does it redirect to a different page?

                    Despite everything, the person most likely to be fooling you next is yourself.

                    L 1 Reply Last reply
                    0
                    • L Lonnie R Thomas

                      I have a page with nothing but buttons and the only thing they do is a response.redirect(" ") to which ever page. If I let it sit still for roughly 2 minutes and hit the return key I get a blank page. Can anyone pls help me trouble shoot this problem.

                      Lonnie R Thomas

                      L Offline
                      L Offline
                      leoinfo
                      wrote on last edited by
                      #10

                      Try to add form1.Attributes.Add("onkeydown", "return false;"); to the Page_Load() This way any key pressed on that page will be ignored (as all you need is the mouse to press the buttons).

                      1 Reply Last reply
                      0
                      • G Guffa

                        What's the url of the blank page? Does it reload the same page, or does it redirect to a different page?

                        Despite everything, the person most likely to be fooling you next is yourself.

                        L Offline
                        L Offline
                        Lonnie R Thomas
                        wrote on last edited by
                        #11

                        it is going trying to load the same page. whereas the respons.redirect("reportsmenu.aspx") is the command.

                        Lonnie R Thomas

                        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