04 2012 档案

摘要:public Dictionary<string, string> GetWordTableContent(object fullname, int tableIndex) { Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application(); Microsoft.Office.Interop.Word.Document doc = new Microsoft.Office.Interop.Word.Document(); object missin 阅读全文
posted @ 2012-04-28 14:51 Yu 阅读(394) 评论(0) 推荐(0)
摘要:没有在 group by 出现的基本列,是不能在select 子句中使用,若要使用,就只能作为聚合函数的输入。而 over 子句 就可以决解这一问题,如:select Name, Max(Age) Over() as MaxAge from usersrow_number()从1开始,为每一条分组... 阅读全文
posted @ 2012-04-14 23:07 Yu 阅读(170) 评论(0) 推荐(0)
摘要:当需要向视图传递多个参数时,而 View 又不够传参,则可以运用 ViewBag.XXX(运行时编译,XXX为任意名称) 的接收需要传递的参数public ActionResult Index(){ var filelist=.....ToList(); this.ViewBag.FirstName="xxxx"; this.ViewBag.Date=DateNow.Now.ToString("M/d/yyyy"); return View(filelist);} 阅读全文
posted @ 2012-04-06 19:27 Yu 阅读(439) 评论(0) 推荐(0)
摘要:运用系统自定义的 Attribute [xxxxxx] ,也可以说是 DataAnnotation 配置方式1. 当出现同名方法,不能编译时,可以通过设置[Action("方法名")]后,重新定义“方法名”的别名,如下,红色部份是不能编译的,[HttpGet]public ActionResult Submit(int id){ return View();}[HttpPost]public ActionResult Submit(int id){ return View();}------------------------------------------------ 阅读全文
posted @ 2012-04-06 19:13 Yu 阅读(249) 评论(0) 推荐(0)