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. Other Discussions
  3. The Weird and The Wonderful
  4. Best way of handling querystring [modified]

Best way of handling querystring [modified]

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharpcollaboration
4 Posts 4 Posters 11 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.
  • D Offline
    D Offline
    dinu2007
    wrote on last edited by
    #1

    one of my team mate has written like this in c# if (Request.QueryString["test1"] != null) { --- do something } else { Response.Redirect(Request.UrlReferrer.ToString(), false); } What the --------:rolleyes::^):-D -- modified at 6:24 Thursday 29th March, 2007

    M 1 Reply Last reply
    0
    • D dinu2007

      one of my team mate has written like this in c# if (Request.QueryString["test1"] != null) { --- do something } else { Response.Redirect(Request.UrlReferrer.ToString(), false); } What the --------:rolleyes::^):-D -- modified at 6:24 Thursday 29th March, 2007

      M Offline
      M Offline
      Marko B L
      wrote on last edited by
      #2

      Could you please translate this for all the C++ programmers here ;P

      Alcohol, the cause of and the solution to all of life's problems - Homer J. Simpson X| X| X|

      C 1 Reply Last reply
      0
      • M Marko B L

        Could you please translate this for all the C++ programmers here ;P

        Alcohol, the cause of and the solution to all of life's problems - Homer J. Simpson X| X| X|

        C Offline
        C Offline
        Chris Maunder
        wrote on last edited by
        #3

        if "?test1=..." appears in the URL for this page
        {
        --- do something
        }
        else
        {
        send a request back to the client to get their browser
        to re-request this page without the "?test1=..." bit on the end
        }

        That's uuuh-gleeee

        cheers, Chris Maunder

        CodeProject.com : C++ MVP

        E 1 Reply Last reply
        0
        • C Chris Maunder

          if "?test1=..." appears in the URL for this page
          {
          --- do something
          }
          else
          {
          send a request back to the client to get their browser
          to re-request this page without the "?test1=..." bit on the end
          }

          That's uuuh-gleeee

          cheers, Chris Maunder

          CodeProject.com : C++ MVP

          E Offline
          E Offline
          eggsovereasy
          wrote on last edited by
          #4

          Actually it sends them back to the page that referred them to the current page (which isn't a good idea because Norton and McAfee like to change your settings so referrer information is not passed with the request). Request.UrlReferrer

          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