MVC:
//Request.QueryString[""];Request.Form[""];
//同名参数
//对象的同名属性
ViewData["val"] = 11;
TempData["val"] = 11;
ViewBag.val = 11;//动态数据类型,啥都能存,啥都能取
//int val3 = ViewBag.val;
return View();
2024-02-18 10:26:52
MVC:
//Request.QueryString[""];Request.Form[""];
//同名参数
//对象的同名属性
ViewData["val"] = 11;
TempData["val"] = 11;
ViewBag.val = 11;//动态数据类型,啥都能存,啥都能取
//int val3 = ViewBag.val;
return View();