I have an url like so:
http://localhost/place/663828/bangkok-paradise-restaurant-toronto#r306040
I am trying to see if theres the existence of the anchor tag
A fragment can be parsed from a url in C# in the following way:
var uri = new Uri("http://localhost?id=2#token=23");
var fragment = uri.Fragment; // will return #token=23
There is a problem however in that the browser won't send fragments to the server. If you receive requests from a service that includes this info in the request, it will available from the server side too.