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. Server.Transfer vs. Session questions

Server.Transfer vs. Session questions

Scheduled Pinned Locked Moved ASP.NET
csharpcssasp-netvisual-studiosysadmin
4 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.
  • T Offline
    T Offline
    Taen_Karth
    wrote on last edited by
    #1

    I am writing an Asp.net 2.0 web app. In the app I have the user walk through a series of steps (1-4). I need to carry the variable frmo the controls from each form all the way to the last form. Using "Server.Transfer("URL", true)" I understand is less overhead on the server but on each page I have to bind the variables from the previous page to a new control then hide it on the form on every following page. Is there an easier way to carry the variables from page 1 to page 4 using server.transfer or is it only Sessions that can do that. Writing to a file is out of the question. Thanks, Taen Karth

    T 1 Reply Last reply
    0
    • T Taen_Karth

      I am writing an Asp.net 2.0 web app. In the app I have the user walk through a series of steps (1-4). I need to carry the variable frmo the controls from each form all the way to the last form. Using "Server.Transfer("URL", true)" I understand is less overhead on the server but on each page I have to bind the variables from the previous page to a new control then hide it on the form on every following page. Is there an easier way to carry the variables from page 1 to page 4 using server.transfer or is it only Sessions that can do that. Writing to a file is out of the question. Thanks, Taen Karth

      T Offline
      T Offline
      Tad McClellan
      wrote on last edited by
      #2
      1. Use the Querystring 2) Sounds like you could use the wizard control 3) ASP.Net 2.0 buttons will allow where the post back goes to. In 1.1 it's always the same page but with 2.0 you can pick a page. That means your data will be in the form object on the new page. There is a property in the button object that controls this. E=mc2  ->  BOOM
      T 1 Reply Last reply
      0
      • T Tad McClellan
        1. Use the Querystring 2) Sounds like you could use the wizard control 3) ASP.Net 2.0 buttons will allow where the post back goes to. In 1.1 it's always the same page but with 2.0 you can pick a page. That means your data will be in the form object on the new page. There is a property in the button object that controls this. E=mc2  ->  BOOM
        T Offline
        T Offline
        Taen_Karth
        wrote on last edited by
        #3

        1. Querystring inserts the parameters in address bar from what i understand. Not an option for this client as they have expressed there thoughts on that particular case. 2. I am not familiar with the wizard control but it looks very useful....Thanks for pointing it out to me! 3. I am not quite sure I follow the PostBackUrl. So if I have 4 aspx form pages on page 1 I can use PostBackUrl to page 4. then I can postbackurl from page 2 to four and three to fuor as well and when I reach page four they will all be accessible? Thanks, Taen Karth

        T 1 Reply Last reply
        0
        • T Taen_Karth

          1. Querystring inserts the parameters in address bar from what i understand. Not an option for this client as they have expressed there thoughts on that particular case. 2. I am not familiar with the wizard control but it looks very useful....Thanks for pointing it out to me! 3. I am not quite sure I follow the PostBackUrl. So if I have 4 aspx form pages on page 1 I can use PostBackUrl to page 4. then I can postbackurl from page 2 to four and three to fuor as well and when I reach page four they will all be accessible? Thanks, Taen Karth

          T Offline
          T Offline
          Tad McClellan
          wrote on last edited by
          #4

          You pick the page you want to post back to. Works like the old action paramater of the form tag. E=mc2 -> BOOM

          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