摘要: 1.这个方法是获取提交表单里的参数值,也就是有name="xxx"的属性的表单控件的值FormCollection传值 public ActionResult Login(FormCollection form) { string userid=form["userID"]; return view(); }2.获取路由的参数在页面view中这样获取就可以:在action中RouteData.Values["id"]; 阅读全文
posted @ 2014-02-19 14:43 ``炯`` 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 转换查询结果为ProductId字段的类型的list集合(from s in _db.Mobile_TeamActionwhere s.ActionStatus == 0 || s.ActionStatus == 1select new { s.ProductId }).ToList().Select(s=>s.ProductId) 阅读全文
posted @ 2014-02-19 11:25 ``炯`` 阅读(3105) 评论(0) 推荐(0) 编辑