[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:

/help#privacy-policy

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:

http://stackoverflow.com/questions/26549296/add-id-to-an-asp-net-mvc-url

Best Regards,

Eileen

Leave a Reply