使用 Html.BeginForm 和 jQuery 提交添加动态参数
// html <% using (Html.BeginForm("MyAction", "MyController", new { id = ViewContext.RouteData.Values["id"] }, FormMethod.Post, new { encty…
Html.BeginForm 部分用于不同的控制器
我有以下代码: <% using (Html.BeginForm("AddComment", "Comments", FormMethod.Post)) { %> <div id="New_Comment"> <textarea name="ne…
Html.BeginForm 和 HTML 属性不指定控制器和操作
我喜欢它的简洁性 using (Html.BeginForm()) ,但讨厌添加 HTML 属性需要指定控制器、操作和表单方法。 using (Html.BeginForm("Action", "Controller…
Html.BeginForm 的 ASP.Net MVC 路由问题
使用 MVC,我认为有一个 html 表单助手: using (Html.BeginForm("ActionOne", "ControllerOne")) ... 使用默认路由,操作属性的输出符合预期: <fo…
- 共 1 页
- 1