1
MVC控制器中是否存在任何操作參數的順序或模式。 例如:MVC控制器參數
[HttpPost]
public ActionResult AddFiles(HttpPostedFileBase file, int catid, string description)
如何控制器知道,這一定之後的參數是CATID等等。
MVC控制器中是否存在任何操作參數的順序或模式。 例如:MVC控制器參數
[HttpPost]
public ActionResult AddFiles(HttpPostedFileBase file, int catid, string description)
如何控制器知道,這一定之後的參數是CATID等等。
當試圖綁定catid
參數時,默認模型聯編程序查找具有該名稱的值。它看起來在表單值,路由數據,查詢字符串和http文件集合。看看this。
當您調用*「ASP.NET MVC」*框架只是*「MVC」*時,就像將IE稱爲「互聯網」*一樣。 –