Hallo Ich möchte einen Anker von Mvc-Controller zurückzukehrenauf einen Hash von der Steuerung mit "RedirectToAction"
-Controller name = default;
public ActionResult MyAction(int id)
{
return RedirectToAction("Index", "region")
}
Damit die URL, wenn zum Index gerichtet ist
http://localhost/Default/#region
Damit
<a href=#region>the content should be focus here</a>
ich nicht frage mich, ob Sie es wie folgt tun: How can I add an anchor tag to my URL?
http://stackoverflow.com/questions/7904835/how-can-i-add-an-anchor-tag-to-my-url – DevDave