Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的剃须刀代码 (mypage.cshtml) 中加载一个 aspx 页面。我有以下代码,它不起作用:
@Html.Partial("~/Video/Upload.aspx")
它给出的错误是:未找到部分视图“~/Video/Upload.aspx”或没有视图引擎支持搜索的位置。搜索了以下位置:~/Video/Upload.aspx
将 Upload.aspx 移动到您的 Views/Shared 文件夹以使其可访问,并且您的部分将起作用。