Off to get the current fragment from the route that was issued through the action link. This is how I get the action from the route.
string currentAction = requestContext.RouteData.Values โโ["action"] as a string ?? "Index";
Can I do something like this?
string currentFragment = requestContext.RouteData.Values โโ["Fragment"] as a string ?? "";
, . (, # URL-) , , URL-, .
#
, url: http://example.com/foo/bar?key1=value1#abc, abc , .
http://example.com/foo/bar?key1=value1#abc
abc
, . ( , ) . .
, . URL-, .
. , :
http://stackoverflow.com/questions /6285833/get-current-fragment-in-route-asp-net-mvc/6286097#6286097
, 6286097 . . .
6286097
P.S. (id HTML-). , XHTML . , #6286097 - #answer-6286097.
#6286097
#answer-6286097
# 2. - JavaScript-, . JavaScript - , . , , . JavaScript .