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. When to use Server.Transfer?

When to use Server.Transfer?

Scheduled Pinned Locked Moved ASP.NET
sysadminquestion
3 Posts 3 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 Offline
    R Offline
    robert110
    wrote on last edited by
    #1

    Can someone explain when would be a good time to user Server.Transfer? Thanks. - Robert

    S 1 Reply Last reply
    0
    • R robert110

      Can someone explain when would be a good time to user Server.Transfer? Thanks. - Robert

      S Offline
      S Offline
      Software_Guy_123
      wrote on last edited by
      #2

      Hello Robert, Assume you have two forms form1.aspx and form2.aspx. now you want all the controls of form1.aspx can be retrieve in form2.aspx, in this situation you can use form2.aspx. Regards, S Kumar

      A 1 Reply Last reply
      0
      • S Software_Guy_123

        Hello Robert, Assume you have two forms form1.aspx and form2.aspx. now you want all the controls of form1.aspx can be retrieve in form2.aspx, in this situation you can use form2.aspx. Regards, S Kumar

        A Offline
        A Offline
        Amit Kumar G
        wrote on last edited by
        #3

        In 2.0 we have three options and all come with its +/-ve A) Response.redirect -ve : round trips, value can not be passed across pages b) Server.Transfer -ve : Loose browser history, but good for value pass and no round trip C) PostBackUrl New feature in 2.0 and in my views, you should use this only when you need to transfer from page a to b. Because in background it creates all the page events of page a :(( ... So use wisely and smartly... Amit Gugnani

        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