上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
摘要: 1、Cookie2、Session每当一个新的请求来时,asp.net会根据浏览器有没传来SessionId(一般用Cookie传过来的,也可以用url传),来判断是新创建一个session还是根据sessionid从内存中取原有的。Session对象是HttpSessionState类型的:常用属... 阅读全文
posted @ 2015-05-06 10:10 谷樵 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 一、HttpContext概述 1)、如何获取对象: 在WebForm或类库(包括MVC)项目中,通过Current静态属性,就能够获得HttpContext的对象: HttpContext context = HttpContext.Current; 如果是在Asp.net MVC的Control 阅读全文
posted @ 2015-05-05 09:40 谷樵 阅读(222) 评论(0) 推荐(0) 编辑
摘要: http://daimajishu.iteye.com/blog/1079107http://www.cnblogs.com/dubing/p/3816615.html 阅读全文
posted @ 2015-05-04 17:46 谷樵 阅读(169) 评论(0) 推荐(0) 编辑
摘要: public static string GetIp() { string ip; HttpRequest request = HttpContext.Current.Request; if (request.Serv... 阅读全文
posted @ 2015-05-04 11:20 谷樵 阅读(775) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/yexiaochai/p/3603389.html 阅读全文
posted @ 2015-05-03 23:23 谷樵 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1、case 函数: declare @nn varchar(20),@cc intselect @nn=name , @cc=agefrom student where ID=1select @nn 姓名 ,@cc 年龄 4、 MERGE 目标表 USING 源表 ON 匹配条件 WHEN MAT 阅读全文
posted @ 2015-05-03 13:38 谷樵 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 优秀博客:http://www.cnblogs.com/iyangyuan/archive/2013/12/12/3471227.html官网:http://handlebarsjs.com/注意点:支持嵌套循环:this指当前上下文循环中的索引使用:@index (从0开始的){{addOne @... 阅读全文
posted @ 2015-04-24 22:45 谷樵 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 1、IsPostBack介绍Page.IsPostBack是一个标志:当前请求是否第一次打开。 调用方法为:Page.IsPostBack或者IsPostBack或者this.IsPostBack或者this.Page.IsPostBack,它们都等价。 1)当通过IE的地址栏等方式打开一个URL... 阅读全文
posted @ 2015-04-21 22:33 谷樵 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Resharper的快捷键覆盖了Visual Studio的设置。如果要恢复Visual Studio的快捷键,需要在工具->导入导出配置->重置所有键就可以了。.VS2010工具/选项/文本编辑器/C#/常规检查一下,确保自动列出成员勾选。 阅读全文
posted @ 2015-04-16 14:28 谷樵 阅读(123) 评论(0) 推荐(0) 编辑
摘要: http://q.cnblogs.com/q/40841/ 阅读全文
posted @ 2015-04-13 16:34 谷樵 阅读(94) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页