Reputation: 317
<a href="@Url.Action("Products", "Home", new {id = "#Specialty"})">
<img class="img-responsive img-thumbnails"
src="@Url.Content("~/images/ChopSaw.jpg")"/>
</a>
The code I have provided takes me to - website.com/Home/Products/#Specialty
.
If I would like to navigate to - website.com/Home/Products#Specialty.
(removed "/" between products & #Specialty)
How would I do that? I will have to maintain the integrity and styling of the img/link
. I have spent more time on this trying to get it to work than I would like to admit. Any advice will be appreciated.
Upvotes: 0
Views: 21
Reputation: 22619
Try this one
<a href='@Url.Action("Products", "Home")#Specialty'>
Upvotes: 2