随笔分类 -  asp.net

摘要:context.Response.AddHeader("Access-Control-Allow-Origin", context.Request.Headers["Origin"]); 这个方法是有问题的,在IE11中 context.Request.Headers["Origin"] 这段是获取 阅读全文
posted @ 2019-08-19 09:47 哥,我还要 阅读(2653) 评论(0) 推荐(0)
摘要:public sealed class CacheManager { private HttpApplicationState appPool = null; /// /// 构造函数 /// public CacheManager() { this.appPool = HttpContext.Current.Application; } /// /// 构造函数 /// /// HttpApplicationState 对象 public CacheManager(HttpApplicationSta... 阅读全文
posted @ 2014-02-08 10:40 哥,我还要 阅读(214) 评论(0) 推荐(0)
摘要:最近做了一个红底高根鞋的电商网站Cheap Red Bottom ShoesChristian Louboutin Loafers Bestsellers Christian Louboutin Shoes Free Shipping Red Bottom Heels 阅读全文
posted @ 2013-05-16 01:05 哥,我还要 阅读(190) 评论(1) 推荐(0)
摘要:iis7.5中做 handlerweb.config 改成这样<system.webServer> <handlers> <add verb="*" path="photo/*" name="photoHandlerEx" type="ImageCenter.Core.PhotoURLWrite,ImageCenter.Core"/> <add verb="*" path="upload/*" name="uploadURL 阅读全文
posted @ 2013-03-26 19:09 哥,我还要 阅读(418) 评论(0) 推荐(0)
摘要:Reqeust["keyname"] 的读取顺序 ,寓意深远,回味无穷。publicstringthis[stringkey]{get{stringstr=this.QueryString[key];if(str!=null){returnstr;}str=this.Form[key];if(str!=null){returnstr;}HttpCookiecookie=this.Cookies[key];if(cookie!=null){returncookie.Value;}str=this.ServerVariables[key];if(str!=null){retur 阅读全文
posted @ 2012-08-24 14:52 哥,我还要 阅读(159) 评论(0) 推荐(0)
摘要:引子:  其它成员做了一个棵树,treenode 的 Value值是这样一个串"id=1&name=张三&sex=男",按普通做法的话,进行这个字符串拆分,用substring 和 split 两个方法就可以做到了.但是看到这样一个串我觉得和URL的QueryString是一样的.我就想用Request["id"]这样来得到这个字符串中id对应的"1"这个值.我一开始觉得HttpR... 阅读全文
posted @ 2010-03-19 17:46 哥,我还要 阅读(747) 评论(1) 推荐(1)
摘要:Asp.net Treeview 客户端选中效果实现最近将asp.net默认自带的treeview控件,做成一个导航树,导向其它的几个站点,所以这样写TreeNode tn = new TreeNode();tn.Text = “新浪网”;tn.NavigateUrl = "http://www.sina.com.cn";tn.Target = "mainFr";但是发现一... 阅读全文
posted @ 2010-02-02 12:22 哥,我还要 阅读(2232) 评论(0) 推荐(0)