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. querystring problem [modified]

querystring problem [modified]

Scheduled Pinned Locked Moved ASP.NET
helphtmlcomalgorithms
7 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.
  • M Offline
    M Offline
    Miss Maheshwari
    wrote on last edited by
    #1

    i m using both html and aspx pages in my project... for searching a particular product i m using search option in all pages...its working f9 but when i pass the text from html page through get method..it not taking the minus sign(taking in aspx page) http://www.esccctv.com/[^] when i m passing CCP – 2415 (ESC) product no. from aspx page.. it found a search but not thru html page... someone help please

    modified on Wednesday, November 26, 2008 4:26 AM

    W P 2 Replies Last reply
    0
    • M Miss Maheshwari

      i m using both html and aspx pages in my project... for searching a particular product i m using search option in all pages...its working f9 but when i pass the text from html page through get method..it not taking the minus sign(taking in aspx page) http://www.esccctv.com/[^] when i m passing CCP – 2415 (ESC) product no. from aspx page.. it found a search but not thru html page... someone help please

      modified on Wednesday, November 26, 2008 4:26 AM

      W Offline
      W Offline
      whatUrunning com
      wrote on last edited by
      #2

      This probably an encoding[^]issue, replace the minus with "%2d"

      www.whatUrunning.com

      1 Reply Last reply
      0
      • M Miss Maheshwari

        i m using both html and aspx pages in my project... for searching a particular product i m using search option in all pages...its working f9 but when i pass the text from html page through get method..it not taking the minus sign(taking in aspx page) http://www.esccctv.com/[^] when i m passing CCP – 2415 (ESC) product no. from aspx page.. it found a search but not thru html page... someone help please

        modified on Wednesday, November 26, 2008 4:26 AM

        P Offline
        P Offline
        Prasanna Kumar Pete
        wrote on last edited by
        #3

        Try using Server.UrlEncode() OR HttpUtility.UrlEncode() for the query string value this will encode the value

        Thanks & Regards Pete

        M 1 Reply Last reply
        0
        • P Prasanna Kumar Pete

          Try using Server.UrlEncode() OR HttpUtility.UrlEncode() for the query string value this will encode the value

          Thanks & Regards Pete

          M Offline
          M Offline
          Miss Maheshwari
          wrote on last edited by
          #4

          Prasanna Kumar Pete wrote:

          Try using Server.UrlEncode() OR HttpUtility.UrlEncode()

          thanks but please give a proper syntax how to use Server.UrlEncode() or HttpUtility.UrlEncode()

          P 1 Reply Last reply
          0
          • M Miss Maheshwari

            Prasanna Kumar Pete wrote:

            Try using Server.UrlEncode() OR HttpUtility.UrlEncode()

            thanks but please give a proper syntax how to use Server.UrlEncode() or HttpUtility.UrlEncode()

            P Offline
            P Offline
            Prasanna Kumar Pete
            wrote on last edited by
            #5

            string strEncoded = HttpUtility.UrlEncode("CCP – 2415 (ESC)");

            Thanks & Regards Pete

            M 1 Reply Last reply
            0
            • P Prasanna Kumar Pete

              string strEncoded = HttpUtility.UrlEncode("CCP – 2415 (ESC)");

              Thanks & Regards Pete

              M Offline
              M Offline
              Miss Maheshwari
              wrote on last edited by
              #6

              but how can i use that(

              Prasanna Kumar Pete wrote:

              string strEncoded = HttpUtility.UrlEncode("CCP – 2415 (ESC)");

              ) in html pages.... please tell me

              modified on Wednesday, November 26, 2008 4:34 AM

              P 1 Reply Last reply
              0
              • M Miss Maheshwari

                but how can i use that(

                Prasanna Kumar Pete wrote:

                string strEncoded = HttpUtility.UrlEncode("CCP – 2415 (ESC)");

                ) in html pages.... please tell me

                modified on Wednesday, November 26, 2008 4:34 AM

                P Offline
                P Offline
                Prasanna Kumar Pete
                wrote on last edited by
                #7

                for html pages you might need to use encodeURIComponent() available in javascript :):)

                Thanks & Regards Pete

                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