[RESOLVED]How to add #id to MVC action

<div class="post-text" itemprop="text">Hello,

I have the following on an ASP.NET MVC view:

<a href="@Url.Action(MVC.Help.Index())">

But I would like to add to the generated url an anchor like #privacy-policy so I would get:


How can I do this?

Thank You</div>

<a href="@(Url.Action(MVC.Help.Index()))#somebookmark">

Hi shapper,

Thanks for your post.

You can get your answer from here:


Best Regards,


Leave a Reply