05 2011 档案

摘要:在controller里面写一个object返回类型的方法:如下 public object CoustomLabelWikiReuslt() { IDictionary<int, string> CoustomLabels = GetCoustomLabel(); IDictionary<int, int> LabelWikiCount = GetLabelWikiCount(); IList<int> ids = new List<int>(); IList<int> counts = new List<int>(); 阅读全文
posted @ 2011-05-13 12:15 八神吻你 阅读(717) 评论(0) 推荐(0)
摘要:<a href="/Document/Download?id=<%= ViewData.Eval("documentRead.DocumentID") %>">下载该文档</a> 这句代码是在页面中被点击以后返回DocumentController类的Download()方法,在Download方法里面有以下语句: int documentid = Request.QueryString["id"].ToInteger(); //此处加上下载数的逻辑 document.UpdateDownloadC 阅读全文
posted @ 2011-05-10 18:58 八神吻你 阅读(295) 评论(0) 推荐(0)
摘要:数据绑定方式1: ViewData.Add("documentRead", new { DocumentID = documentInfo.DocumentID, documentInfo.CategoryID, documentTitle = documentInfo.GetLangInfo(DefaultLanage).DocumentTitle, Description = documentInfo.GetLangInfo(DefaultLanage).Description, Author = documentInfo.GetLangInfo(DefaultLana 阅读全文
posted @ 2011-05-05 18:46 八神吻你 阅读(2540) 评论(0) 推荐(0)
摘要:左连接和右连接都是外部连接,也就是区别于内部连接,它对不满足连接条件的行并不是象内部连接一样将数据完全过滤掉,而是保留一部分数据,行数不会减少。在Oracle PL-SQL中,左连接和右连接可以用如下的方式实现: 语句片断: SELECT emp_name, dept_name FORM Employee, Department WHERE Employee.emp_deptid(+) = Department.deptid此SQL文使用了右连接,即“(+)”所在位置的另一侧为连接的方向,右连接说明等号右侧的所有记录均会被显示,无论其在左侧是否得到匹配,也就是说上例中无论会不会出现某个... 阅读全文
posted @ 2011-05-04 15:17 八神吻你 阅读(400) 评论(1) 推荐(0)