MVC 3 传多个参数问题
@Html.ActionLink("添加传入参数","Add","Home",new{id=interface_row["ID"],type=1})报错如下Thepara...
@Html.ActionLink("添加传入参数", "Add", "Home", new { id = interface_row["ID"], type = 1 })
报错如下
The parameters dictionary contains a null entry for parameter 'type' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult AddParameters(Int32, Int32)' in 'API.Controllers.HomeController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. 展开
报错如下
The parameters dictionary contains a null entry for parameter 'type' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult AddParameters(Int32, Int32)' in 'API.Controllers.HomeController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询