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 cannot be access

url cannot be access

Scheduled Pinned Locked Moved ASP.NET
comhelp
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.
  • N Offline
    N Offline
    netJP12L
    wrote on last edited by
    #1

    Hi guys, The ampersand driving me crazy. How the heck am i suppose to access the datafile. plz help https://www.mysupport.com/myhosted/MainFolder/**testFolders1&Folder**/datafile.txt

    N S 2 Replies Last reply
    0
    • N netJP12L

      Hi guys, The ampersand driving me crazy. How the heck am i suppose to access the datafile. plz help https://www.mysupport.com/myhosted/MainFolder/**testFolders1&Folder**/datafile.txt

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Url.Encode


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • N netJP12L

        Hi guys, The ampersand driving me crazy. How the heck am i suppose to access the datafile. plz help https://www.mysupport.com/myhosted/MainFolder/**testFolders1&Folder**/datafile.txt

        S Offline
        S Offline
        Sandeep Mewara
        wrote on last edited by
        #3

        netJP12L wrote:

        testFolders1&Folder/

        Parameters after '&' is considered as a Query String. Thus, in order to use it in a vald complete URL you need to encode your URL. As Mark suggested, URL.Encode would do this for you. Encoding will convert this ampersand into it's html equivalent and thus will not make part of the text after it as query string.

        N 1 Reply Last reply
        0
        • S Sandeep Mewara

          netJP12L wrote:

          testFolders1&Folder/

          Parameters after '&' is considered as a Query String. Thus, in order to use it in a vald complete URL you need to encode your URL. As Mark suggested, URL.Encode would do this for you. Encoding will convert this ampersand into it's html equivalent and thus will not make part of the text after it as query string.

          N Offline
          N Offline
          netJP12L
          wrote on last edited by
          #4

          I wanted to inform you that amperson Url encoding doesn't work for IIS 7. It worksin IIS 5 and 6.

          S 1 Reply Last reply
          0
          • N netJP12L

            I wanted to inform you that amperson Url encoding doesn't work for IIS 7. It worksin IIS 5 and 6.

            S Offline
            S Offline
            Sandeep Mewara
            wrote on last edited by
            #5

            Have a look at this thread: Ampersand & the Request URL in IIS7[^] It is explained with a link of how to handle it in IE7. Hope it helps.

            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