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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to allow "&" character in URL

How to allow "&" character in URL

Scheduled Pinned Locked Moved ASP.NET
tutorial
3 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
    meghamaharshi
    wrote on last edited by
    #1

    Hi All, My URL has '&' so its giving bad request so plz tell me how to handle it. Thanks

    S A 2 Replies Last reply
    0
    • M meghamaharshi

      Hi All, My URL has '&' so its giving bad request so plz tell me how to handle it. Thanks

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      A '&' is a special character within a url, defining an additional key-value-pair within the query string. Could you post the Url and where you use it (Response.Redirect in ASP.NET etc.) Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      1 Reply Last reply
      0
      • M meghamaharshi

        Hi All, My URL has '&' so its giving bad request so plz tell me how to handle it. Thanks

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        Add %26 instead of & in the querystring. Or Use this to facilitate them automatically: In case of you are calling from Server use Server.URLEncode(value) and Server.URLDecode(querystring) If you are passing through Javascript use : encodeURIComponent(value) Hope you can get it solved now. :rose:

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        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