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. Querystring needed to set to empty

Querystring needed to set to empty

Scheduled Pinned Locked Moved C#
databasequestion
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.
  • K Offline
    K Offline
    kKamel
    wrote on last edited by
    #1

    Hello i need to set a query string to null or empty after it had a value can any body assist me??

    M C 2 Replies Last reply
    0
    • K kKamel

      Hello i need to set a query string to null or empty after it had a value can any body assist me??

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      Try to explain that again please. If you want to set a string to null, which probably is not want you want, you can do...

      string s = "something";
      //do something with string
      s = null;

      Life goes very fast. Tomorrow, today is already yesterday.

      K 1 Reply Last reply
      0
      • M musefan

        Try to explain that again please. If you want to set a string to null, which probably is not want you want, you can do...

        string s = "something";
        //do something with string
        s = null;

        Life goes very fast. Tomorrow, today is already yesterday.

        K Offline
        K Offline
        kKamel
        wrote on last edited by
        #3

        I have a query string that is used in a page. i sent this url from pop up page lets say window.opener.location.href = window.opener.location.href +" 'Id=1'"; but after i get the Id request.queryString["Id"] i want it to be string.empty or null i simply want to remove it or assign to it a value so i will not check it again.

        M 1 Reply Last reply
        0
        • K kKamel

          I have a query string that is used in a page. i sent this url from pop up page lets say window.opener.location.href = window.opener.location.href +" 'Id=1'"; but after i get the Id request.queryString["Id"] i want it to be string.empty or null i simply want to remove it or assign to it a value so i will not check it again.

          M Offline
          M Offline
          musefan
          wrote on last edited by
          #4

          Well that makes more sense, but I cannot help you I'm afraid, try posting in the Web Development forum instead next time.

          Life goes very fast. Tomorrow, today is already yesterday.

          1 Reply Last reply
          0
          • K kKamel

            Hello i need to set a query string to null or empty after it had a value can any body assist me??

            C Offline
            C Offline
            Coding C
            wrote on last edited by
            #5

            QueryString collection is readonly, it can not be modified.

            Coding C# www.excitetemplate.com

            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