Weiterleitung zu einem Hash vom Controller mithilfe von "RedirectToAction"
Hallo, ich möchte einen Anker von Mvc Controller zurückgeben
Controllername = DefaultController;
public ActionResult MyAction(int id)
{
return RedirectToAction("Index", "region")
}
Damit ist die URL, wenn sie zum Index geleitet wird
http://localhost/Default/#region
Damit
<a href=#region>the content should be focus here</a>
Ich frage nicht, ob Sie es so machen können:Wie kann ich meiner URL ein Ankertag hinzufügen?