How to pass '#' in query string

11,269

Solution 1

Please use Server.UrlEncode on your querystring that will parse the '#' for you

Solution 2

Try using %23. This is the url encoded value for #.

Solution 3

URL-encode the sharp character: %23.

Share:
11,269
MaxRecursion
Author by

MaxRecursion

Student/IT Professional/ Windows Phone Enthusiast/ Micro-Blogger/ Internet freak/ Computer fanatic /StackExchange Fan/ Android Developer http://MaxRecursion.wordpress.com/ http://twitter.com/MaxRecursion

Updated on June 04, 2022

Comments

  • MaxRecursion
    MaxRecursion almost 2 years

    I want to pass '#' to the query string like ?page.aspx?someParam=1234#5.