1.URL获取参数 Request.QueryString["XqType"];
2.表单提交,control层获取参数:Request.Form["XXX"].ToString
3.通过cotrol层传递参数给view层:ViewBag.XXX="xxx"
view层获取:@ViewBag.XXX
时间: 2024-12-08 22:07:35
1.URL获取参数 Request.QueryString["XqType"];
2.表单提交,control层获取参数:Request.Form["XXX"].ToString
3.通过cotrol层传递参数给view层:ViewBag.XXX="xxx"
view层获取:@ViewBag.XXX