摘要: (1)使用@{ ...... } ,可以将后台的代码写在前台的@{ ...... } 进行转义操作。 例如: @{ string fuid = LoginBLL.GetCurrentUserFid(); SpaceTeamBLL bll = new SpaceTeamBLL(); var toplist = bll.FindALL().Where(x => x.FUserId == fuid).ToList(); //var toplist = Model; var top1 = toplist.Where(x ... 阅读全文
posted @ 2013-09-10 10:44 代号 11 阅读(496) 评论(0) 推荐(0) 编辑
摘要: (1)一般在数据交互的时候,都会涉及到前后台间的相互传值,一般的情况下,方法也有多种,下面就后台定义变量往前台传值: 以下是后台代码: /// /// 展示举报信息 /// /// // public SpeciesBLL bll = new SpeciesBLL(); [HttpGet] public ActionResult Showinfomationn(string articleId, int page = 1) { Dictionary dic = new... 阅读全文
posted @ 2013-09-10 08:36 代号 11 阅读(391) 评论(0) 推荐(0) 编辑