摘要: 清理浏览器之中的缓存:ifmodified,Cache异步请求方式: $.ajax("/请求的地址/",function(){ type: 请求方式 data: "type=1&pi=1" dataType: "json" ... 阅读全文
posted @ 2015-12-07 22:20 菜鸟中的大神 阅读(136) 评论(0) 推荐(0)
摘要: 1、判断前台的请求方式 Request.HttpMethod.ToLower()="";2、创建Cookie(键值对的方式) HttpCookie cookie=new httpCookie("cookie名",值);3、设置cookie的过期时间 cookie.Expires=DateTime... 阅读全文
posted @ 2015-12-01 19:33 菜鸟中的大神 阅读(214) 评论(0) 推荐(0)
摘要: 假如有一张这样的表让它通过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 菜鸟中的大神 阅读(1064) 评论(0) 推荐(0)
摘要: @{ string str=""; } 一、如果在页面中直接用@str输出将会被转义 @str 结果:<input type='button' value='取消'/>; 二、在 Razor视图中实现Htm不l转... 阅读全文
posted @ 2015-10-22 10:41 菜鸟中的大神 阅读(1549) 评论(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 菜鸟中的大神 阅读(336) 评论(0) 推荐(0)