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. Thoughts on response.redirect? Anyone have 0 problems? Or, anyone have problems?

Thoughts on response.redirect? Anyone have 0 problems? Or, anyone have problems?

Scheduled Pinned Locked Moved ASP.NET
csharphtmlsysadminwindows-adminagentic-ai
2 Posts 1 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
    ThomasH1
    wrote on last edited by
    #1

    Hey all, got one of those "real world" questions for everyone! I've got a classic ASP application that uses multiple .asp pages, each with a form. The user fills out 5 pages of forms, each one linking to another, using the old <form action=post action="nextform.asp"> setup. Example- user fills out their login information, and clicks next. Then, user fills out their preferred shipping information, and clicks next. Etc, etc. Now with .NET and code-behind, I have two options for moving the user to the next page. One is response.redirect, the other is server.transfer. They'll click the submit button, which will do a postback to the original form. Then, my code-behind saves the info into the session object, and will either redirect or transfer the client to the next form page. I target a "global" audience with my application, so I'm a bit concerned about the compatability of all this, as follows: Response.redirect: The W3C (World wide web consortium), for the HTTP protocal version 1.1, leads me to think that I (and therefore, all of us) are abusing the redirect command (302). It seems that the 302/redirect command is only for sending a user to a URL that's moved. It also seems to say that some browsers will misinterpret this as a GET, instead of a POST command. See the document here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.3 Besides the temporary relocation part, I'm concerned where it says that "the user agent (browser) must not automatically redirect the request unless confirmed by the user". Server.Transfer: This seemed like the answer, but it might not return valid HTML (multiple <body> tags)- and that might fail against my "global" target audience. That just about throws server.transfer out of the window for me; and leaves me with only one solution- response.redirect! Another solution is to possibly make one large page, with all the forms on it, and only making one visible at a time. But I see this as a particularly messy bit of code that would quickly become more trouble than it's worth. I analyzed the IIS logs of my application, and found out that 95% of my users were using at least IE 5.0. So this might "help" me, in that I can assume that response.redirect's will function as expected. So what I'd really appreciate from you guys is your thoughts on this! Have you deployed apps that work perfectly, using response.redirects? Or have you had probl

    T 1 Reply Last reply
    0
    • T ThomasH1

      Hey all, got one of those "real world" questions for everyone! I've got a classic ASP application that uses multiple .asp pages, each with a form. The user fills out 5 pages of forms, each one linking to another, using the old <form action=post action="nextform.asp"> setup. Example- user fills out their login information, and clicks next. Then, user fills out their preferred shipping information, and clicks next. Etc, etc. Now with .NET and code-behind, I have two options for moving the user to the next page. One is response.redirect, the other is server.transfer. They'll click the submit button, which will do a postback to the original form. Then, my code-behind saves the info into the session object, and will either redirect or transfer the client to the next form page. I target a "global" audience with my application, so I'm a bit concerned about the compatability of all this, as follows: Response.redirect: The W3C (World wide web consortium), for the HTTP protocal version 1.1, leads me to think that I (and therefore, all of us) are abusing the redirect command (302). It seems that the 302/redirect command is only for sending a user to a URL that's moved. It also seems to say that some browsers will misinterpret this as a GET, instead of a POST command. See the document here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.3 Besides the temporary relocation part, I'm concerned where it says that "the user agent (browser) must not automatically redirect the request unless confirmed by the user". Server.Transfer: This seemed like the answer, but it might not return valid HTML (multiple <body> tags)- and that might fail against my "global" target audience. That just about throws server.transfer out of the window for me; and leaves me with only one solution- response.redirect! Another solution is to possibly make one large page, with all the forms on it, and only making one visible at a time. But I see this as a particularly messy bit of code that would quickly become more trouble than it's worth. I analyzed the IIS logs of my application, and found out that 95% of my users were using at least IE 5.0. So this might "help" me, in that I can assume that response.redirect's will function as expected. So what I'd really appreciate from you guys is your thoughts on this! Have you deployed apps that work perfectly, using response.redirects? Or have you had probl

      T Offline
      T Offline
      ThomasH1
      wrote on last edited by
      #2

      So nobody has any idea... or opinions, or even Guesses? Nobody uses response.redirect here? I thought for sure that someone would. Or did I make my question too technical? If I did, let me know, and I'll rephrase it. Thanks! -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