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. Difference between Response.redirectpermanent and server.transfer

Difference between Response.redirectpermanent and server.transfer

Scheduled Pinned Locked Moved ASP.NET
sysadminquestion
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.
  • Y Offline
    Y Offline
    yadlaprasad
    wrote on last edited by
    #1

    Hi all, can any one tell me what is the difference between Response.Redirect permanent and server.Transfer. In google i tried out but i found difference between Response.Redirect permanent and Response.Redirect but not with server.Transfer.

    fttyhtrhyfytrytrysetyetytesystryrty

    M A H 3 Replies Last reply
    0
    • Y yadlaprasad

      Hi all, can any one tell me what is the difference between Response.Redirect permanent and server.Transfer. In google i tried out but i found difference between Response.Redirect permanent and Response.Redirect but not with server.Transfer.

      fttyhtrhyfytrytrysetyetytesystryrty

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      Here [^]you go.

      Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      Y 1 Reply Last reply
      0
      • M Manas Bhardwaj

        Here [^]you go.

        Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        Y Offline
        Y Offline
        yadlaprasad
        wrote on last edited by
        #3

        Hi friend, i am asking difference between Response.redirectpermanent and server.transfer not Response.redirect and server.transfer

        fttyhtrhyfytrytrysetyetytesystryrty

        M 1 Reply Last reply
        0
        • Y yadlaprasad

          Hi friend, i am asking difference between Response.redirectpermanent and server.transfer not Response.redirect and server.transfer

          fttyhtrhyfytrytrysetyetytesystryrty

          M Offline
          M Offline
          Manas Bhardwaj
          wrote on last edited by
          #4

          Well, Response.RedirectPermanent performs same redirect as Response.Redirect() but it uses response code 301 instead of 302. A 301 HTTP status code is a standard code in an HTTP response. It indicates that a permanent redirect exists, and it provides the redirect location.

          Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

          1 Reply Last reply
          0
          • Y yadlaprasad

            Hi all, can any one tell me what is the difference between Response.Redirect permanent and server.Transfer. In google i tried out but i found difference between Response.Redirect permanent and Response.Redirect but not with server.Transfer.

            fttyhtrhyfytrytrysetyetytesystryrty

            A Offline
            A Offline
            Abhishek Sur
            wrote on last edited by
            #5

            Response.RedirectParmanent is an extension function introduced in .NET 4.0. The main motive of it is to indicate the Response Code to the Search Engine that the page is moved permanently. The Response.Redirect generates Response code as 302 whereas RedirectParmanent returns 301. Thus say you have a page, and which is included to search engine for a long time, if you use Response.Redirect() it will not change this effect to the search engine(taking this a temporary change), while if you use Response.RedirectParmanent() it will take it as permanent. In case of Server.Transfer() the actual response is actually been updated. There is no effect to the search engine, and search engine will think the output is coming from the same page that is called upon. Let us give an example : Say you have 2 pages (Page 1 and Page 2) where Page1 redirects to Page2 In case of 1. Response.Redirect() : Search Engine will take this redirection as Temporary(Status 301) and always keep Page1 in its cache. 2. Response.RedirectParmanent() : Search Engine will take this a permanent redirection(Status 302) and will remove Page1 from its database and include Page2 for better performance on search. 3. Server.Transfer() : Search Engine will be unaware of any redirection been took place (Status 200) and will keep Page1 to its database. It will think Page1 is producing the output response of Page2. When to use: Response.Redirect is perfect when your page is temporarily changed and will be changed to original within a short span of time. Response.RedirectParmanent() when you are thinking of deleting the Page1 totally after the search engines changes its cache. Server.Transfer() when you are thinking of keeping the page for ever, and to let search engine unaware of this redirection.

            Abhishek Sur


            My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

            **Don't forget to click "Good Answer" if you like to.

            V A 2 Replies Last reply
            0
            • A Abhishek Sur

              Response.RedirectParmanent is an extension function introduced in .NET 4.0. The main motive of it is to indicate the Response Code to the Search Engine that the page is moved permanently. The Response.Redirect generates Response code as 302 whereas RedirectParmanent returns 301. Thus say you have a page, and which is included to search engine for a long time, if you use Response.Redirect() it will not change this effect to the search engine(taking this a temporary change), while if you use Response.RedirectParmanent() it will take it as permanent. In case of Server.Transfer() the actual response is actually been updated. There is no effect to the search engine, and search engine will think the output is coming from the same page that is called upon. Let us give an example : Say you have 2 pages (Page 1 and Page 2) where Page1 redirects to Page2 In case of 1. Response.Redirect() : Search Engine will take this redirection as Temporary(Status 301) and always keep Page1 in its cache. 2. Response.RedirectParmanent() : Search Engine will take this a permanent redirection(Status 302) and will remove Page1 from its database and include Page2 for better performance on search. 3. Server.Transfer() : Search Engine will be unaware of any redirection been took place (Status 200) and will keep Page1 to its database. It will think Page1 is producing the output response of Page2. When to use: Response.Redirect is perfect when your page is temporarily changed and will be changed to original within a short span of time. Response.RedirectParmanent() when you are thinking of deleting the Page1 totally after the search engines changes its cache. Server.Transfer() when you are thinking of keeping the page for ever, and to let search engine unaware of this redirection.

              Abhishek Sur


              My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

              **Don't forget to click "Good Answer" if you like to.

              V Offline
              V Offline
              Viral Upadhyay
              wrote on last edited by
              #6

              nice one. :thumbsup:

              Viral My Site Tips & Tracks

              1 Reply Last reply
              0
              • A Abhishek Sur

                Response.RedirectParmanent is an extension function introduced in .NET 4.0. The main motive of it is to indicate the Response Code to the Search Engine that the page is moved permanently. The Response.Redirect generates Response code as 302 whereas RedirectParmanent returns 301. Thus say you have a page, and which is included to search engine for a long time, if you use Response.Redirect() it will not change this effect to the search engine(taking this a temporary change), while if you use Response.RedirectParmanent() it will take it as permanent. In case of Server.Transfer() the actual response is actually been updated. There is no effect to the search engine, and search engine will think the output is coming from the same page that is called upon. Let us give an example : Say you have 2 pages (Page 1 and Page 2) where Page1 redirects to Page2 In case of 1. Response.Redirect() : Search Engine will take this redirection as Temporary(Status 301) and always keep Page1 in its cache. 2. Response.RedirectParmanent() : Search Engine will take this a permanent redirection(Status 302) and will remove Page1 from its database and include Page2 for better performance on search. 3. Server.Transfer() : Search Engine will be unaware of any redirection been took place (Status 200) and will keep Page1 to its database. It will think Page1 is producing the output response of Page2. When to use: Response.Redirect is perfect when your page is temporarily changed and will be changed to original within a short span of time. Response.RedirectParmanent() when you are thinking of deleting the Page1 totally after the search engines changes its cache. Server.Transfer() when you are thinking of keeping the page for ever, and to let search engine unaware of this redirection.

                Abhishek Sur


                My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

                **Don't forget to click "Good Answer" if you like to.

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                Good Explanation Abhishek !:thumbsup:

                Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                Y 1 Reply Last reply
                0
                • A Abhijit Jana

                  Good Explanation Abhishek !:thumbsup:

                  Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                  Y Offline
                  Y Offline
                  yadlaprasad
                  wrote on last edited by
                  #8

                  Hi abhishek,it is so clear for me. thank you so much my friend.

                  fttyhtrhyfytrytrysetyetytesystryrty

                  A A 2 Replies Last reply
                  0
                  • Y yadlaprasad

                    Hi abhishek,it is so clear for me. thank you so much my friend.

                    fttyhtrhyfytrytrysetyetytesystryrty

                    A Offline
                    A Offline
                    Abhijit Jana
                    wrote on last edited by
                    #9

                    I am not abhishek :), Anyway, Abhishek will read the message ;)

                    Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                    1 Reply Last reply
                    0
                    • Y yadlaprasad

                      Hi abhishek,it is so clear for me. thank you so much my friend.

                      fttyhtrhyfytrytrysetyetytesystryrty

                      A Offline
                      A Offline
                      Abhishek Sur
                      wrote on last edited by
                      #10

                      Thank you so much for your appreciation. Cheers. :thumbsup:

                      Abhishek Sur


                      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

                      **Don't forget to click "Good Answer" if you like to.

                      1 Reply Last reply
                      0
                      • Y yadlaprasad

                        Hi all, can any one tell me what is the difference between Response.Redirect permanent and server.Transfer. In google i tried out but i found difference between Response.Redirect permanent and Response.Redirect but not with server.Transfer.

                        fttyhtrhyfytrytrysetyetytesystryrty

                        H Offline
                        H Offline
                        HimaBindu Vejella
                        wrote on last edited by
                        #11

                        See how it works in ASPNEt4 http://himabinduvejella.blogspot.com/2010/01/aspnet-40-working-with-redirect.html You don't need to compare it with Server.Transfer. If you understand the feature. It's SEO feature

                        Iblog "If you can dream IT, you can become IT"

                        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