我有一个View的问题.这是代码片段:
public ActionResult AddAdvertisement()
{
...
return RedirectToAction("AdvCreated");
}
[HttpGet]
public ActionResult AdvCreated()
{
return View("AdvCreated", "abc");
}
Run Code Online (Sandbox Code Playgroud)
然后我看到了错误
找不到"AdvCreated"或其主人的观点.搜索了以下位置:
〜/查看/广告/ abc.master
〜/查看/共享/ abc.master
如果我只是去URL http:// localhost/AdvCreated一切都OK.为什么?
asp.net-mvc ×1