我想传递参数grid-page,但是在编译时遇到错误
错误2无效的匿名类型成员声明符。匿名类型 必须使用成员作业,简单名称或成员声明成员 会员访问。
返回RedirectToAction(" Grid",new {sukurta = item.lic_plate, grid-page = 2});
答案 0 :(得分:0)
Check this code
---------------
My simple suggestion is just remove '-' symbol
public ActionResult Index()
{
return RedirectToAction("About" , new
{
sukurta = "a" ,
grid_page = "3"
});
}
public ActionResult About( string sukurta , string grid_page )
{
return View();
}