asp.net mvc - Url.Action passing fragment -


how 1 pass inline anchor using urlhelper in asp.net mvc?

for example, if have url:

/foo/bar/information/faq#toc 

and using following url.action except #toc fragment

<a class="next" href='@url.action("bar", "foo", new { subpath = "information/faq" } )'>my link text</a> 

my question: there overload url.action pass in #toc fragment? i'd rather not use hardcoded concatenation or @url.content (admittedly way cheat of time).

use html.actionlink linkextensions passing "toc" fragment parameter:

https://msdn.microsoft.com/en-us/library/dd460522.aspx


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -