<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_LanceZhang's Tech Blog_分类_01. ASP.NET</title><id>http://feed.cnblogs.com/blog/u/28707/category/179979/rss</id><updated>2012-05-29T21:29:18Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/category/179979.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/28707/category/179979/rss"/><entry><id>http://www.cnblogs.com/blodfox777/archive/2011/03/08/1977435.html</id><title type="text">不需编译让aspx页自主筛选数据绑定记录</title><summary type="text">看到园友的一篇文章，说在一些企业门户站点里，我们经常会去根据需求变更来修改数据绑定的筛选条件，深有同感。而诸如企业门户这些场景一般也不用考虑什么性能之类的非业务要求，尽快的完成业务变更和尽可能少的减少网站编译更新次数却是网站技术支持团队的核心竞争力之所在。不妨设想一下，如果用Store Procedure+DAL+BLL 写好的一个列表查询，如果要适应查询条件变更，则要动的地方恐怕很多，还需要重新编译，再把一堆dll更新上去。。。看了“活跃的毛虫”兄弟的代码，本人也有所感悟，在此也分享一种更加“动态”的绑定方法：大家知道，在.NET3.5以来，与Linq同时也提供了很多针对泛型集合的扩展方法，</summary><published>2011-03-08T09:11:00Z</published><updated>2011-03-08T09:11:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2011/03/08/1977435.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2011/03/08/1977435.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2010/02/09/1666246.html</id><title type="text">ASP.NET AJAX Advance Tips &amp;amp; Tricks (11) 三种方法动态创建Tooltip</title><summary type="text">如何动态创建提示框（Tooltip）是ASP.NET Forum里的常见问题之一，在做技术支持时，我曾在英文博客上总结过ASP.NET和ASP.NET AJAX环境下如何动态创建提示框的三种常见方法，比较基础，收到了蛮多老外们的commend，如今英文博客被墙，特转到这里来与大家分享。</summary><published>2010-02-09T02:21:00Z</published><updated>2010-02-09T02:21:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2010/02/09/1666246.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2010/02/09/1666246.html"/><content type="text">如何动态创建提示框（Tooltip）是ASP.NET Forum里的常见问题之一，在做技术支持时，我曾在英文博客上总结过ASP.NET和ASP.NET AJAX环境下如何动态创建提示框的三种常见方法，比较基础，收到了蛮多老外们的commend，如今英文博客被墙，特转到这里来与大家分享。</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2010/01/05/iis-url-rewriting-and-aspnet-routing-2.html</id><title type="text">IIS URL Rewriting 和 ASP.NET routing（下）</title><summary type="text">在IIS URL Rewriting 和 ASP.NET routing（上）中，我们针对IIS URL Rewriting 和 ASP.NET routing的理念和功能分别进行分析并进行对比，在清楚了这些基本原理和异同之后，我们该如何在应用中挑选合适的URL优化方案呢？在本文中，我们将对此进行探讨分析，并例举几种两者协同应用的案例。</summary><published>2010-01-05T01:45:00Z</published><updated>2010-01-05T01:45:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2010/01/05/iis-url-rewriting-and-aspnet-routing-2.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2010/01/05/iis-url-rewriting-and-aspnet-routing-2.html"/><content type="text">在IIS URL Rewriting 和 ASP.NET routing（上）中，我们针对IIS URL Rewriting 和 ASP.NET routing的理念和功能分别进行分析并进行对比，在清楚了这些基本原理和异同之后，我们该如何在应用中挑选合适的URL优化方案呢？在本文中，我们将对此进行探讨分析，并例举几种两者协同应用的案例。</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2010/01/04/iis-url-rewriting-and-aspnet-routing-1.html</id><title type="text">IIS URL Rewriting 和 ASP.NET routing（上）</title><summary type="text">新版本URL-rewrite module for IIS 7.0的发布了，ASP.NET Routing组件随着.NET Framework 3.5 SP1的发布，并在.NET Framework 4.0 Beta中进一步成熟。作为ASP.NET 开发人员，我们不免会对这两个功能相近的组件抱有许多疑问，诸如“它们有什么异同？”“分别适用于什么环境？”等等。本文旨在描述这两者之间的异同，并为开发人员提供什么时候使用哪一种解决方案的建议。</summary><published>2010-01-04T13:48:00Z</published><updated>2010-01-04T13:48:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2010/01/04/iis-url-rewriting-and-aspnet-routing-1.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2010/01/04/iis-url-rewriting-and-aspnet-routing-1.html"/><content type="text">新版本URL-rewrite module for IIS 7.0的发布了，ASP.NET Routing组件随着.NET Framework 3.5 SP1的发布，并在.NET Framework 4.0 Beta中进一步成熟。作为ASP.NET 开发人员，我们不免会对这两个功能相近的组件抱有许多疑问，诸如“它们有什么异同？”“分别适用于什么环境？”等等。本文旨在描述这两者之间的异同，并为开发人员提供什么时候使用哪一种解决方案的建议。</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/11/23/1608935.html</id><title type="text">使用IIS 7.0 / 7.5 时配置HttpModules需要注意</title><summary type="text">今天将站点部署到Win7 64bit的IIS下，发现网站下所有自定义的HttpModules不管用了？！ 自己看了看IIS7.5的各项配置，发现 和 都没有我的HttpModules。 仔细一想，...</summary><published>2009-11-23T10:28:00Z</published><updated>2009-11-23T10:28:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/11/23/1608935.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/11/23/1608935.html"/><content type="text">今天将站点部署到Win7 64bit的IIS下，发现网站下所有自定义的HttpModules不管用了？！ 自己看了看IIS7.5的各项配置，发现 和 都没有我的HttpModules。 仔细一想，...</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/07/01/1514735.html</id><title type="text">对DataView进行排序和取Select Top * ……操作</title><summary type="text">通过DataView的RowFilter属性不能进行Select Top * ……的操作。同样，DataTable也没有直接的方法可以进行筛选（除非自己写排序筛选算法，麻烦），而下面可有两种方法可以以较少的代码来实现Select Top * ……</summary><published>2009-07-01T06:58:00Z</published><updated>2009-07-01T06:58:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/07/01/1514735.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/07/01/1514735.html"/><content type="text">通过DataView的RowFilter属性不能进行Select Top * ……的操作。同样，DataTable也没有直接的方法可以进行筛选（除非自己写排序筛选算法，麻烦），而下面可有两种方法可以以较少的代码来实现Select Top * ……</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/04/27/1444474.html</id><title type="text">用JavaScript写Session的两种方法</title><summary type="text">方法一：使用postback[代码]方法二：使用AJAX[代码]方法二中，设置session需要一个额外的aspx页面:[代码]</summary><published>2009-04-27T03:39:00Z</published><updated>2009-04-27T03:39:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/04/27/1444474.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/04/27/1444474.html"/><content type="text">方法一：使用postback[代码]方法二：使用AJAX[代码]方法二中，设置session需要一个额外的aspx页面:[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/03/11/1408568.html</id><title type="text">使用HttpHandler解析并展示PDF文档内容</title><summary type="text">如果我们想将服务端的PDF文档内容展示给客户端，往往会通过URL直接访问的方式。这样一来，PDF文档就会毫无保留的保存到客户端去，通过浏览器的PDF插件，客户端可以随意拷贝PDF的副本。本文通过HttpHandler和开源控件PDFBox来对PDF文档进行访问控制，只向客户端解析并展示PDF的内容而非PDF文件本身。</summary><published>2009-03-11T03:08:00Z</published><updated>2009-03-11T03:08:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/03/11/1408568.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/03/11/1408568.html"/><content type="text">如果我们想将服务端的PDF文档内容展示给客户端，往往会通过URL直接访问的方式。这样一来，PDF文档就会毫无保留的保存到客户端去，通过浏览器的PDF插件，客户端可以随意拷贝PDF的副本。本文通过HttpHandler和开源控件PDFBox来对PDF文档进行访问控制，只向客户端解析并展示PDF的内容而非PDF文件本身。</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/01/16/1377029.html</id><title type="text">ASP.NET ImageButton/Image 控件关于border的一个诡异的BUG及其解决方案</title><summary type="text">今天上午帮同事重现一个客户提交的关于ASP.NET ImageButton/Image控件的bug，最终找出了原因，提交到了产品组，但很是不解，在网上搜索了一下，也没见大家讨论这个问题。在此就和大家研究一下</summary><published>2009-01-16T07:29:00Z</published><updated>2009-01-16T07:29:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/01/16/1377029.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/01/16/1377029.html"/><content type="text">今天上午帮同事重现一个客户提交的关于ASP.NET ImageButton/Image控件的bug，最终找出了原因，提交到了产品组，但很是不解，在网上搜索了一下，也没见大家讨论这个问题。在此就和大家研究一下</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/10/09/1307418.html</id><title type="text">关于网络摄像头的一些.net好文章（.net resource and articles for Webcam app）</title><summary type="text">Friend, here are the couple of tutorials that will help you outhttp://weblogs.asp.net/nleghari/articles/webcam.aspxhttp://www.codeproject.com/KB/web-image/webcamimage.aspxhttp://www.codeproject.com/KB...</summary><published>2008-10-09T09:21:00Z</published><updated>2008-10-09T09:21:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/10/09/1307418.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/10/09/1307418.html"/><content type="text">Friend, here are the couple of tutorials that will help you outhttp://weblogs.asp.net/nleghari/articles/webcam.aspxhttp://www.codeproject.com/KB/web-image/webcamimage.aspxhttp://www.codeproject.com/KB...</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/10/06/1304586.html</id><title type="text">从外部的js文件中获取ASPX页面的控件ClientID(get control reference from external javascript)</title><summary type="text">当使用MasterPage、UserControl等容器时，为了避免控件的重复命名，asp.net会自动将容器中的控件生成一个ClientID，当我们使用JavaScript对控件元素进行操作的时候，必须使用ClientID来对控件进行查找。本文提供了两种在外部js文件中动态获得ClientID的方法</summary><published>2008-10-06T03:54:00Z</published><updated>2008-10-06T03:54:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/10/06/1304586.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/10/06/1304586.html"/><content type="text">当使用MasterPage、UserControl等容器时，为了避免控件的重复命名，asp.net会自动将容器中的控件生成一个ClientID，当我们使用JavaScript对控件元素进行操作的时候，必须使用ClientID来对控件进行查找。本文提供了两种在外部js文件中动态获得ClientID的方法</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/10/02/1303119.html</id><title type="text">使用JavaScript展开/折叠TreeView中所有节点(Expand and Collapse All Nodes of asp.net Treeview on the client with javascript)</title><summary type="text">代码如下，国外网站上copy很多，也不知道谁才是原作者，但在.net 3.5下好像有一点毛病，就是图标的问题，不知道如何解决：[代码]</summary><published>2008-10-02T05:42:00Z</published><updated>2008-10-02T05:42:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/10/02/1303119.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/10/02/1303119.html"/><content type="text">代码如下，国外网站上copy很多，也不知道谁才是原作者，但在.net 3.5下好像有一点毛病，就是图标的问题，不知道如何解决：[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/09/26/1299656.html</id><title type="text">ASP.NET获得客户端浏览器语言设置(Get the Language setting of browser by ASP.NET)</title><summary type="text">代码如下：[代码]</summary><published>2008-09-26T08:11:00Z</published><updated>2008-09-26T08:11:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/09/26/1299656.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/09/26/1299656.html"/><content type="text">代码如下：[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/09/08/1286582.html</id><title type="text">Google Chrome 不兼容ASP.NET Menu!</title><summary type="text">问题：1. CSS没有正常应用 2. 鼠标点击事件postback有误 3. 下拉子目录不能显示更新：使用ASP.NET 2.0 CSS Friendly Control Adapters可以解决</summary><published>2008-09-08T02:31:00Z</published><updated>2008-09-08T02:31:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/09/08/1286582.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/09/08/1286582.html"/><content type="text">问题：1. CSS没有正常应用 2. 鼠标点击事件postback有误 3. 下拉子目录不能显示更新：使用ASP.NET 2.0 CSS Friendly Control Adapters可以解决</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/09/02/1282271.html</id><title type="text">使用JavaScript调用WebService四篇文章及代码</title><summary type="text">Calling Web Services From Html Pages using Javascript 下载代码http://www.codeproject.com/KB/webservices/CallWebServiceFromHtml.aspx Web Services using WebService Behavior and .NET 下载代码http://www.codeproje...</summary><published>2008-09-02T10:39:00Z</published><updated>2008-09-02T10:39:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/09/02/1282271.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/09/02/1282271.html"/><content type="text">Calling Web Services From Html Pages using Javascript 下载代码http://www.codeproject.com/KB/webservices/CallWebServiceFromHtml.aspx Web Services using WebService Behavior and .NET 下载代码http://www.codeproje...</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/09/01/1281430.html</id><title type="text">ASP.NET 事件日历(some resource about Event Calendar)</title><summary type="text">Do you want to draw a calendar with event, just like http://www.google.com/calendar/renderBut you don’t know how to start, right?If so, I suggest you begin with some easier examples, because the...</summary><published>2008-09-01T10:36:00Z</published><updated>2008-09-01T10:36:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/09/01/1281430.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/09/01/1281430.html"/><content type="text">Do you want to draw a calendar with event, just like http://www.google.com/calendar/renderBut you don’t know how to start, right?If so, I suggest you begin with some easier examples, because the...</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/09/01/1280924.html</id><title type="text">JavaScript访问GridView的绑定列(Access the Bound field of Gridview by javascript)</title><summary type="text">[代码][代码][代码]</summary><published>2008-09-01T01:27:00Z</published><updated>2008-09-01T01:27:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/09/01/1280924.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/09/01/1280924.html"/><content type="text">[代码][代码][代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/08/29/1279675.html</id><title type="text">为TreeView的节点添加右键菜单(Add ContextMenu to ASP.NET TreeView)</title><summary type="text"/><published>2008-08-29T10:39:00Z</published><updated>2008-08-29T10:39:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/08/29/1279675.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/08/29/1279675.html"/><content type="text"/></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/08/29/1279404.html</id><title type="text">使用JavaScript选择DataGrid行的方法汇总（Select row of DataGrid by JavaScript）</title><summary type="text">前些天发了一篇 使用JavaScript选择GridView行的方法汇总（Select row of GridView by JavaScript） 有朋友反馈说不适用于DataGrid，确实，如果要在DataGrid的行中添加JavaScript事件捕捉，必须用下面的代码：[代码]</summary><published>2008-08-29T05:21:00Z</published><updated>2008-08-29T05:21:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/08/29/1279404.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/08/29/1279404.html"/><content type="text">前些天发了一篇 使用JavaScript选择GridView行的方法汇总（Select row of GridView by JavaScript） 有朋友反馈说不适用于DataGrid，确实，如果要在DataGrid的行中添加JavaScript事件捕捉，必须用下面的代码：[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/08/27/1277785.html</id><title type="text">ModalPopupExtender使用技巧( operate ModalPopupExtender by JavaScript)</title><summary type="text">ModalPopupExtender是个非常好用的AJAX控件, 网上有很多教程，但大多没有提起它的一些使用技巧：1.简单应用：常用属性：TargetControlID：用于触发弹出面板的控件。OkControlID：弹出面板中的确认按钮，用于确认新的样式。 OnOkScript：当单击确认按钮后，关闭样式面板后，执行脚本。CancelControlID：样式面板中的取消按钮，用于取消应用样式。P...</summary><published>2008-08-27T08:02:00Z</published><updated>2008-08-27T08:02:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/08/27/1277785.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/08/27/1277785.html"/><content type="text">ModalPopupExtender是个非常好用的AJAX控件, 网上有很多教程，但大多没有提起它的一些使用技巧：1.简单应用：常用属性：TargetControlID：用于触发弹出面板的控件。OkControlID：弹出面板中的确认按钮，用于确认新的样式。 OnOkScript：当单击确认按钮后，关闭样式面板后，执行脚本。CancelControlID：样式面板中的取消按钮，用于取消应用样式。P...</content></entry></feed>
