Jerry.Zhong

博客园 首页 新随笔 联系 订阅 管理

2010年1月18日 #

摘要: 在Vista中,使用了保护模式的机制。在保护模式下,IE7的运行权限较低,这样可以提高系统安全性。不过,带来的负面影响则是, IE7的权限不够高,以致不能将相应的记录写入常规的缓存目录、Cookies目录甚至浏览历史目录。这种情况下,采取一种变通的方式,即在相应的目录下 创建一个名为“low” 的子目录,用来储存保护模式下的数据。 这些文件夹分别是cookieC:/user... 阅读全文
posted @ 2010-01-18 16:00 钟先生 阅读(1288) 评论(0) 推荐(0) 编辑

2009年10月16日 #

摘要: public string GetRootURI() { string UrlAuthority = Request.Url.GetLeftPart(UriPartial.Authority); if (Request.ApplicationPath == null || Request.ApplicationPath == "/") { //直接安装在Web站点 return UrlAuthor... 阅读全文
posted @ 2009-10-16 14:09 钟先生 阅读(357) 评论(0) 推荐(0) 编辑

摘要: <xxx:RDataGridTemplateColumn Header="Protect" RColumnKey="Protect" DefaultWidth="100"> <data:DataGridTemplateColumn.HeaderStyle> <Style TargetType="dataprimitives:DataGridColumnHeader"&... 阅读全文
posted @ 2009-10-16 14:07 钟先生 阅读(288) 评论(0) 推荐(0) 编辑

摘要: private void Download(string fileName, byte[] buffer) { Response.ContentType = "application/octet-stream"; //通知浏览器下载文件而不是打开 Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtil... 阅读全文
posted @ 2009-10-16 14:06 钟先生 阅读(836) 评论(0) 推荐(0) 编辑