0

I want to create a link which will go to some page but focus down automatically in mvc4.

@Html.ActionLink("About", "About", "Home") Like I m using html helpers in mvc it will take to the view of about but how will it move to the about and div or link there with the id of tips or something else.

Like in html we achieve this by doing this..

Visit the Useful Tips (On home page) Tips. (on about page)

Umair Rana
  • 683
  • 1
  • 6
  • 13

1 Answers1

0
@Html.ActionLink("LinkName", "Action", "Controller", null, null, "Anchor", null, null)

Here is another SO post about it

Community
  • 1
  • 1
darkchico
  • 647
  • 7
  • 7
  • Thank you so much for your help :) Now can I ask you one more thing? How to do active or current link class in mvc4. with these action links. Like I want the current page to be highlighted. my class name is selected but I don't know how will it work in a master page. – Umair Rana Mar 19 '14 at 12:26
  • You should create a new question for that, you'll get help faster this way. And don't forget to mark the answer as a solution if it helped you ! ;) – darkchico Mar 19 '14 at 12:40
  • Yes your answer helped me a lot :) but unfortunately i m new to this forum so couldn't vote here but I will say this is really workable :) – Umair Rana Mar 23 '14 at 12:14
  • You can't vote up, but you can mark the answer as a solution. – darkchico Mar 24 '14 at 09:28