10 2015 档案

摘要:假如有一张这样的表让它通过SQL的方式变成这个样子需要使用 Case When 的用法select 学号 ,sum(case when 科目='语文' then 分数 else 0 end) as 语文 ,sum(case when 科目='数学' then 分数 else 0 end) as 数... 阅读全文
posted @ 2015-10-28 11:39 菜鸟中的大神 阅读(1088) 评论(0) 推荐(0)
摘要:@{ string str=""; } 一、如果在页面中直接用@str输出将会被转义 @str 结果:<input type='button' value='取消'/>; 二、在 Razor视图中实现Htm不l转... 阅读全文
posted @ 2015-10-22 10:41 菜鸟中的大神 阅读(1563) 评论(0) 推荐(0)
摘要:string ColorStr= "Yellow"; Color slateBlue = Color.FromName(ColorStr) FormName返回一个Color int R = slateBlue.R; int G = slateBlue.G; int B = slateBlue.B;... 阅读全文
posted @ 2015-10-15 11:03 菜鸟中的大神 阅读(347) 评论(0) 推荐(0)