C# HttpRequest - Accessing hashtags in url

Posted by CloudyOne on Stack Overflow See other posts from Stack Overflow or by CloudyOne
Published on 2012-04-11T17:25:41Z Indexed on 2012/04/11 17:29 UTC
Read the original article Hit count: 307

Unfortunately because of the wide use of the word "hashtag" and "httprequest" i couldn't find any search results that gave me an answer on whether something like this is even possible.

If i have a url like this:

/Orders/Product#12345

The HttpRequest class shows me that the FilePath, RawUrl, and all other members that show the url as

/Orders/Product

It just gets rid of the hashtag, and i can't find a place to view it.

Is there any way for me to be able to see what hashtag is on the end of the URL from the codebehind? I know i could easily make this a QueryString parameter, but i like the way this looks better, so if there's a way to do it, i'd like to find out what it is :)

Thanks in advance!

© Stack Overflow or respective owner

Related posts about c#

Related posts about asp.net-mvc-3