Ich habe Anfrage an Server wie: "http://localhost/Login/Index?asdhkjashdaskjdhqwehw"
.Vollständige Anfrage erhalten url - ASP.NET MVC
Und mein Action
:
public ActionResult Index()
{
stringUrl = ;
return RedirectToAction("Index","Home");
}
Ich möchte String erhalten: "asdhkjashdaskjdhqwehw" in Action
Index.
Es tut mir leid, meine Frage ist nicht klar. Du kannst es überprüfen. –
Sie können Daten auf ähnliche Weise abrufen, indem Sie den Parameter in Aktion auch für Ihre URL verwenden –