ActionLink to internal path ASP.NET MVC -


how can generate following link using @html.actionlink?

<a href="#mystore" aria-controls="mystore" data-toggle="tab">my store</a> 

i know can use create link controller

@html.actionlink("my store", "mycontroller", new dictionary<string, object> { { "aria-controls", "mystore" }, { "data-toggle", "tab" } }); 

but, cannot find overload of actionlink not take action name... instead want internal link: href="#mystore".

reading above comments, seems actionlinks designed external links, used instead:

<a href="#@model.name()" aria-controls="@model.name" data-toggle="tab">@model.name</a> 

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -