ASP.NET Core
.NET Framework 中一套用于生成 Web 应用程序和 XML Web 服务的技术。
22 个问题
可以在controller中使用ViewData从view中获取数据吗? 例如: View : @{ Layout = "_Layout"; ViewData["pid"] = "1"; } 在view 页面中提交表单后,如何在controller 中获取ViewData的值,就像这样: public IActionResult do() { string…
你好, 在 Sale 区域 Index.chtml 页面(位于\Areas\Customer\Views\Sale 文件夹)中有一个<a>标记链接: <a asp-page="/TryGetMoney" class="btn btn-success">@language.Getkey("get_money")</a> 这个 Index.chtml 在浏览器中访问URL…