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. URL Path

URL Path

Scheduled Pinned Locked Moved ASP.NET
javascriptxmlhelptutorialquestion
5 Posts 2 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.
  • S Offline
    S Offline
    senthilsstil
    wrote on last edited by
    #1

    Hi Friends, How to pass FileName Path as querystring in javascript.I have passed like this var file='comment_popup.aspx?Path='+hid.value; when i put alert(file) its getting D:workReview115-02.xml but the path name should come like this D:\work\Review\15-02.xml.How to pass the correct path name as querystring please help me. Thanks in Advance

    V 1 Reply Last reply
    0
    • S senthilsstil

      Hi Friends, How to pass FileName Path as querystring in javascript.I have passed like this var file='comment_popup.aspx?Path='+hid.value; when i put alert(file) its getting D:workReview115-02.xml but the path name should come like this D:\work\Review\15-02.xml.How to pass the correct path name as querystring please help me. Thanks in Advance

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      Have the value UrlEncoded before passing it in the querystring.

      Vasudevan Deepak Kumar Personal Homepage
      Tech Gossips
      A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

      S 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        Have the value UrlEncoded before passing it in the querystring.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

        S Offline
        S Offline
        senthilsstil
        wrote on last edited by
        #3

        Hi Vasudevan Deepak Kumar, Thanks for reply i have one doubt whether we have to put UrlEncode(hid.value) in the querystring. Thanks in Advance

        V 1 Reply Last reply
        0
        • S senthilsstil

          Hi Vasudevan Deepak Kumar, Thanks for reply i have one doubt whether we have to put UrlEncode(hid.value) in the querystring. Thanks in Advance

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          If you are building a querystring from serverside, use Server.UrlEncode(). You can encode the querystring from JavaScript, you ought to use escape function.

          Vasudevan Deepak Kumar Personal Homepage
          Tech Gossips
          A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

          S 1 Reply Last reply
          0
          • V Vasudevan Deepak Kumar

            If you are building a querystring from serverside, use Server.UrlEncode(). You can encode the querystring from JavaScript, you ought to use escape function.

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

            S Offline
            S Offline
            senthilsstil
            wrote on last edited by
            #5

            Hi Vasudevan Deepak Kumar, I m passing querystring from javascript, as you told i have used escape(hid.value) but when i retreving the value at server side Request.QueryString["Path"].ToString() its not getting right path and also its getting half of the letter from filename.Please Help me Sorry for disturbing. Thanks in Advance

            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