我有一个将表单定义为的视图
<% using (Html.BeginForm( "Update", "CcisCase", FormMethod.Post, new { id = "ccisEditForm" } ))
带有提交按钮:
在RegisterRoutes
方法中(在 -HttpApplication
派生类中global.asax.cs
),我有:
routes.IgnoreRoute( "{resource}.axd/{*pathInfo}" );
routes.MapRoute(
"CcisCase",
"CcisCase/{action}/{cmDatabaseId}/{caseId}",
new { Controller = "CcisCase", Action = "CcisCaseEdit", caseId = "" } );
MVC生成的url以“/Update”结尾,但没有参数。我究竟做错了什么?
谢谢,鲍勃