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. General Programming
  3. C#
  4. Request.QueryString Clear

Request.QueryString Clear

Scheduled Pinned Locked Moved C#
help
5 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.
  • A Offline
    A Offline
    Agweet
    wrote on last edited by
    #1

    Can any1 help...im trying to clear a Request.QueryString["Value"]...i have tried Request.QueryString["Value"].remove(0) and Request.QueryString.clear() and to no success...plz help

    living life on the flip side

    A J 2 Replies Last reply
    0
    • A Agweet

      Can any1 help...im trying to clear a Request.QueryString["Value"]...i have tried Request.QueryString["Value"].remove(0) and Request.QueryString.clear() and to no success...plz help

      living life on the flip side

      A Offline
      A Offline
      AhsanS
      wrote on last edited by
      #2

      Why do you want to clear QueryString? If you don't want user to view it and want to pass thing to other page. use session variable.

      Ahsan Ullah Senior Software Engineer

      A 1 Reply Last reply
      0
      • A AhsanS

        Why do you want to clear QueryString? If you don't want user to view it and want to pass thing to other page. use session variable.

        Ahsan Ullah Senior Software Engineer

        A Offline
        A Offline
        Agweet
        wrote on last edited by
        #3

        im using the querystring for loading data..querystring value loads a contact treeview...wen i click new all must be loaded again but with no values...so querystring must be cleared?

        living life on the flip side

        A 1 Reply Last reply
        0
        • A Agweet

          im using the querystring for loading data..querystring value loads a contact treeview...wen i click new all must be loaded again but with no values...so querystring must be cleared?

          living life on the flip side

          A Offline
          A Offline
          AhsanS
          wrote on last edited by
          #4

          If it is the same page use ViewState

          Ahsan Ullah Senior Software Engineer

          1 Reply Last reply
          0
          • A Agweet

            Can any1 help...im trying to clear a Request.QueryString["Value"]...i have tried Request.QueryString["Value"].remove(0) and Request.QueryString.clear() and to no success...plz help

            living life on the flip side

            J Offline
            J Offline
            Jim Brooks
            wrote on last edited by
            #5

            How about this? int indx = Request.Url.OriginalString.IndexOf("?"); if(indx > -1) Response.Redirect(Request.Url.OriginalString.Substring(0,indx));

            Jim

            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