ASP.net意外错误404

时间:2017-05-31 17:55:11

标签: c# asp.net-mvc razor

我有以下代码,我希望每当用户点击他/她的名字时,它都会打开一个管理帐户页面。

@Html.ActionLink("Hello " + User.Identity.Name + "" ,"Manage", "Account" ,routeValues: null, htmlAttributes: new { title = "Manage" })

但是,虽然我创建了一个Manage.cshtml视图,但仍然收到错误404。 enter image description here

1 个答案:

答案 0 :(得分:1)

您需要在控制器中创建一个Action

public ActionResult Manage()
{
    return View();
}