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. not able to redirect pages in iframe

not able to redirect pages in iframe

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
11 Posts 4 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.
  • R rama charan

    hi all, can anyone tell me the possible contraints to redirect pages in iframe.i am not able to redirect pages in IE and it gives a lot of problems like loss of session data etc... or can anyone suggest me how i can hide the url of the website using asp.net1.1 and do my application navigation without using an iframe any help or suggestions are welcome thanks in advance.

    Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

    W Offline
    W Offline
    wEb GuRu
    wrote on last edited by
    #2

    Can you please explain a bit, what you realy want? So that we can suggest you a proper way. Thanks

    All the way from Sialkot ...

    R 1 Reply Last reply
    0
    • W wEb GuRu

      Can you please explain a bit, what you realy want? So that we can suggest you a proper way. Thanks

      All the way from Sialkot ...

      R Offline
      R Offline
      rama charan
      wrote on last edited by
      #3

      hi sialkot, thanks for trying... the issue here is when i try redirecting page within iframe using response.redirect or server.transfer it does not work in IE. Of course may be i appear unclear with such a weird question but what i want to know if anyone can let me know what issues to address when redirecting aspx page within a iframe Question1:i lose session data and exception occurs that thread has been aborted. so my question is how can i redirect page in a iframe while loading session variables just before the redirect. Question 2: is there any way to change the url of application from display from user and use our own website url? i hope i am clearer now... thanks for help...

      Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

      N G 2 Replies Last reply
      0
      • R rama charan

        hi sialkot, thanks for trying... the issue here is when i try redirecting page within iframe using response.redirect or server.transfer it does not work in IE. Of course may be i appear unclear with such a weird question but what i want to know if anyone can let me know what issues to address when redirecting aspx page within a iframe Question1:i lose session data and exception occurs that thread has been aborted. so my question is how can i redirect page in a iframe while loading session variables just before the redirect. Question 2: is there any way to change the url of application from display from user and use our own website url? i hope i am clearer now... thanks for help...

        Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #4

        rama charan wrote:

        hope i am clearer now...

        Not question 2 :confused: As for #1, how are you doing the redirect? If you are using Response.Redirect, look at the secnd parameter for that method.


        only two letters away from being an asset

        R 1 Reply Last reply
        0
        • N Not Active

          rama charan wrote:

          hope i am clearer now...

          Not question 2 :confused: As for #1, how are you doing the redirect? If you are using Response.Redirect, look at the secnd parameter for that method.


          only two letters away from being an asset

          R Offline
          R Offline
          rama charan
          wrote on last edited by
          #5

          thanks mark for your help 1)yes i have already tried using response.redirect ("mypage.aspx",false) but still it does not work when i tried like response.redirect("~/mypage.aspx",false) it works. but then the issue occurs when i press any link on menu like "link1.aspx" then i am redirected to login page as the pages are accessible only to authenticated users. hope i am clear about my first question 2)then second question is all these issues to redirect occur only when my application runs in iframe completely but when it is running outside its fine. so i use iframe to use website address for my application.So i wanted to know if there any way to hide my appplication page addresses like 34.23.23.12:6780\login.aspx but instead show like mywebsite.com thanks all once again for your efforts but give out any suggestions or help regarding this i feel i am not still out with a complete solution

          Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

          N 1 Reply Last reply
          0
          • R rama charan

            hi sialkot, thanks for trying... the issue here is when i try redirecting page within iframe using response.redirect or server.transfer it does not work in IE. Of course may be i appear unclear with such a weird question but what i want to know if anyone can let me know what issues to address when redirecting aspx page within a iframe Question1:i lose session data and exception occurs that thread has been aborted. so my question is how can i redirect page in a iframe while loading session variables just before the redirect. Question 2: is there any way to change the url of application from display from user and use our own website url? i hope i am clearer now... thanks for help...

            Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

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

            rama charan wrote:

            i lose session data

            Exactly what session data are you losing?

            rama charan wrote:

            exception occurs that thread has been aborted.

            That is normal. That is how the Response.Redirect command exits from the current page. You are not supposed to catch that exception. When you catch exceptions, you should only catch the ones that you know how to handle.

            rama charan wrote:

            is there any way to change the url of application from display from user and use our own website url?

            The url shown in the browser is always the url of the page displayed. You can never change that.

            --- single minded; short sighted; long gone;

            N 1 Reply Last reply
            0
            • G Guffa

              rama charan wrote:

              i lose session data

              Exactly what session data are you losing?

              rama charan wrote:

              exception occurs that thread has been aborted.

              That is normal. That is how the Response.Redirect command exits from the current page. You are not supposed to catch that exception. When you catch exceptions, you should only catch the ones that you know how to handle.

              rama charan wrote:

              is there any way to change the url of application from display from user and use our own website url?

              The url shown in the browser is always the url of the page displayed. You can never change that.

              --- single minded; short sighted; long gone;

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #7

              Guffa wrote:

              The url shown in the browser is always the url of the page displayed. You can never change that.

              UrlRewrite ??


              only two letters away from being an asset

              G 1 Reply Last reply
              0
              • R rama charan

                thanks mark for your help 1)yes i have already tried using response.redirect ("mypage.aspx",false) but still it does not work when i tried like response.redirect("~/mypage.aspx",false) it works. but then the issue occurs when i press any link on menu like "link1.aspx" then i am redirected to login page as the pages are accessible only to authenticated users. hope i am clear about my first question 2)then second question is all these issues to redirect occur only when my application runs in iframe completely but when it is running outside its fine. so i use iframe to use website address for my application.So i wanted to know if there any way to hide my appplication page addresses like 34.23.23.12:6780\login.aspx but instead show like mywebsite.com thanks all once again for your efforts but give out any suggestions or help regarding this i feel i am not still out with a complete solution

                Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

                N Offline
                N Offline
                Not Active
                wrote on last edited by
                #8
                1. This seems to be a problem with the authentication setup, not with redirect. Have you tried using Server.Transfer instead? 2) http://www.codeproject.com/aspnet/urlrewriter.asp[^]

                only two letters away from being an asset

                1 Reply Last reply
                0
                • N Not Active

                  Guffa wrote:

                  The url shown in the browser is always the url of the page displayed. You can never change that.

                  UrlRewrite ??


                  only two letters away from being an asset

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

                  Mark Nischalke wrote:

                  UrlRewrite ??

                  Then you are changing the url of the page on the server. The browser still displays the url of the page.

                  --- single minded; short sighted; long gone;

                  N 1 Reply Last reply
                  0
                  • G Guffa

                    Mark Nischalke wrote:

                    UrlRewrite ??

                    Then you are changing the url of the page on the server. The browser still displays the url of the page.

                    --- single minded; short sighted; long gone;

                    N Offline
                    N Offline
                    Not Active
                    wrote on last edited by
                    #10

                    Am I looking at this incorrectly then? http://msdn2.microsoft.com/en-us/library/ms972974.aspx[^]


                    only two letters away from being an asset

                    G 1 Reply Last reply
                    0
                    • N Not Active

                      Am I looking at this incorrectly then? http://msdn2.microsoft.com/en-us/library/ms972974.aspx[^]


                      only two letters away from being an asset

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

                      Why do you think that?

                      --- single minded; short sighted; long gone;

                      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