Redirect auf einen hash von der Steuerung mit "RedirectToAction"

Hallo, ich möchte zurückkehren, ein Anker von Mvc-Controller

Controller name= DefaultController;

public ActionResult MyAction(int id)
{
        return RedirectToAction("Index", "region")
}

So, dass die url, wenn Sie gerichtet index

http://localhost/Default/#region

So, dass

<a href=#region>the content should be focus here</a>

Ich bin nicht gefragt, ob Sie es tun können, wie diese: Wie kann ich ein Anker-tag ein, um meine URL?

InformationsquelleAutor hidden | 2012-05-21

Schreibe einen Kommentar