惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
博客园_首页
博客园 - 【当耐特】
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
GbyAI
GbyAI
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
H
Help Net Security
T
Tailwind CSS Blog
B
Blog RSS Feed
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
博客园 - 叶小钗
雷峰网
雷峰网
量子位

博客园 - Dflying Chen

《博客园精华集》ASP.NET分册第2论筛选结果文章列表 本周ASP.NET英文技术文章推荐[03/23 - 04/05]:C#、Visual Studio、MVC、死锁、Web 2.0 API、jQuery、IIS7、FileUpload 本周ASP.NET英文技术文章推荐[03/16 - 03/22]:MVC、LINQ、Blog、C#、RSS、ViewManager 本周ASP.NET英文技术文章推荐[03/02 - 03/15]:ASP.NET AJAX、LinqDataSource、ListView、MVC、JavaScript、智能感知、Ext、CAPTCHA 《构建可扩展的Web站点》书评 完成这最后的20%——《持续集成——软件质量改进和风险降低之道》书评 本周ASP.NET英文技术文章暂停一周 本周ASP.NET英文技术文章推荐[02/24 - 03/01]:Silverlight、AJAX、Web Client Software Factory、LINQ、上传文件、GDI+ 本周ASP.NET英文技术文章推荐[02/17 - 02/23]:AJAX、History、jQuery、最佳实践、LINQ、Visual Studio、JavaScript、IIS 本周ASP.NET英文技术文章推荐[02/03 - 02/16]:MVC、Visual Studio 2008、安全性、性能、LINQ to JavaScript、jQuery C#开发团队的《Future Focus》系列文章,以及第一篇中介绍的动态查找(Dynamic Lookup) 本周ASP.NET英文技术文章推荐[01/27 - 02/02]:负载均衡、State Server、Web Deployment、Data Entry Suite、GridView、Access、SQL Server、MSDE 最近在InfoQ上翻译的几篇文章 博客园OpenSearch插件,适用于Firefox和IE 7等浏览器 本周ASP.NET英文技术文章推荐[很久以前 - 02/26]:Immutability、InterpolationMode、CompositingQuality、性能优化、单点登录、Spring.NET、Facebook、MySQL、Web Deployment Tool 胡思乱想胡言乱语ASP.NET AJAX 招聘Software Engineer (Frontend)、Software Engineer (ASP.NET/C#)、Senior Software Engineer、Software Testing Engineer、Senior Software Testing Engineer、System Administrator和Web Designer(长期有效) 招聘Software Engineer (Frontend)和Software Engineer (ASP.NET/C#) - 已经结束 本周ASP.NET英文技术文章推荐[09/30- 07/13]:.NET Framework、JSON、Google Analytics、文件上传、GridView、IIS 7、Web开发
本周ASP.NET英文技术文章推荐[09/23 - 09/29]:IIS 7.0、Face...
Dflying Chen · 2007-09-30 · via 博客园 - Dflying Chen

摘要

本期共有8篇文章:

  1. IIS 7.0 RC0——添加了很多新功能
  2. VS.net中的starter kit——Nikhil Kothari的Facebook.NET
  3. 新项目——ASP.NET AJAX异常日志记录
  4. 为ModalPopupExtender添加动画效果
  5. ASP.NET开发中常用的一些扩展方法
  6. LinqDataSource、ObjectDataSource和SqlDataSource比较
  7. 让ListView控件以平铺模式显示
  8. 15个免费的Visual Studio的插件

[1] IIS 7.0 Hits RC0 - Lots of cool new IIS7 Extensions Also Now Available (IIS 7.0 RC0——添加了很多新功能)

Scott显然对IIS 7抱有很大的期待。原文是这样说的:

IIS 7 is a *major* update of our web-server stack, and introduces a significantly new and improved extensibility, configuration, and administration architecture.

确实,微软公司在Web Server方面还处于劣势,自然希望IIS 7能够给它带来好运。好在最新的IIS 7.0终于到了RC0阶段,并引入了很多所谓“引人注目”的功能:

  1. IIS 7.0 Extensibility (and why it is cool)
  2. IIS 7.0 FTP Publishing Service
  3. IIS 7.0 Media Pack Bit-Rate Throttling Module
  4. IIS 7.0 Remote Manager Administration Tool
  5. FastCGI Support for IIS 5.1 and IIS 6.0

恕我鲁钝,还是没能看出来哪些真的是那么的利害……当然仁者见仁了。

[2] VS.NET starter kit for Nikhil Kothari's Facebook.NET (VS.net中的starter kit——Nikhil Kothari的Facebook.NET)

Facebook的大名如雷贯耳,微软公司的一干人马也做出了一个框架——Facebook.NET,用来让开发人员更容易地在.NET环境下创建Facebook的应用程序……(谁想出来的这个创意,还真有闲心)。

另有“好事者”干脆将这个东西做成了VS.net中的starter kit,也就是说在VS中只要新建一个Facebook.NET项目,基础设施什么的就已经做好了……

这个东西可以在此下载:http://www.stevetrefethen.com/files/FacebookNETStarterKit.vsi

[3] New Project - Asp.net Ajax Exception Logging (新项目——ASP.NET AJAX异常日志记录)

ASP.NET AJAX应用程序中发生的异常也能够被记录下来了,使用Kazi Manzur Rashid的这个东西就可以:

<AjaxLogging:ExceptionManager ID="TheExceptionManager" runat="server">
    <Listeners>
        <AjaxLogging:WebServiceListener ServicePath="~/ExceptionLogService.asmx" ServiceMethod="Log" />
        <AjaxLogging:PanelListener Panel="pnlException" />
        <AjaxLogging:SysDebugListener />
        <AjaxLogging:AlertListener />
    </Listeners>
</AjaxLogging:ExceptionManager>

再加上一点小小的设定,效果就出来了:

Event Log

[4] Animating the ModalPopupExtender (为ModalPopupExtender添加动画效果)

ASP.NET AJAX Control Toolkit中的ModalPopupExtender非常有用,而且样式看起来也非常漂亮。这篇文章就让ModalPopupExtender“百尺竿头,更进一步”,为其添加了动画效果。

使用起来非常简单:

<ajaxToolKit:ModalPopupExtender>
    <Animations>
        <OnShown>
            <% -- Fade in when first displayed %>
            <FadeIn Duration=".75" Fps="20" />                
        </OnShown>
    </Animations>
</ajaxToolKit:ModalPopupExtender>   

最终效果可以看一下这个演示页面:http://mattberseth2.com/ModalPopupAnimationExtender/

[5] ASP.NET Centric Extensions (ASP.NET开发中常用的一些扩展方法)

“扩展方法”是.NET 3.0中引入的一个新的特性,在Scott的一篇Blog中有详细的介绍(http://weblogs.asp.net/scottgu/archive/2007/03/13/new-orcas-language-feature-extension-methods.aspx)。

这篇文章的作者就总结出了ASP.NET开发中常用的一些扩展方法,比如说这个用于TreeView的:

public static bool IsDescendantOrSelfSelected(this TreeNode node)
{
    if (node.Selected)
    {
        return true;
    }
    else if (node.ChildNodes.Count > 0)
    {
        foreach (TreeNode n in node.ChildNodes)
        {
            if (IsDescendantOrSelfSelected(n))
                return true;
        }
 
        return false;
    }
    else
    {
         return false;
    }
}

[6] LinqDataSource vs ObjectDataSource vs SqlDataSource (LinqDataSource、ObjectDataSource和SqlDataSource比较)

知名的高产ASP.NET技术作家、意大利人Dino Esposito对LinqDataSource、ObjectDataSource和SqlDataSource作了一番比较。不过虽然洋洋洒洒一大篇,车轱辘话绕来绕去,最后却并没有一个“总结性”的发言。

还发现了Dino的一个写作特点——文中喜欢使用粗体,比如:

The purposes of LinqDataSource and ObjectDataSource are clearly different. ObjectDataSource enables you to take advantage of RAD data binding on top of your existing middle tier. LinqDataSource and related tools give you instead a quick way to build an extremely thin and to some extent, anemic, object model that, in addition, can hardly be deployed on a physically different tier.

有兴趣的朋友不妨读读看。

[7] Using the ListView control in Tiled mode (Part 1) (让ListView控件以平铺模式显示)

经历过从前各种ASP.NET控件生成的HTML之后,干净清爽的ListView无疑立即受到了开发人员的欢迎。如果你还不知道ListView是什么东西,那么参考一下Scott的这篇Blog吧:http://weblogs.asp.net/scottgu/archive/2007/08/10/the-asp-listview-control-part-1-building-a-product-listing-page-with-clean-css-ui.aspx

其实本文的内容倒没有什么特别“有技术含量”的地方。关键是其中的这张图,非常清晰地给出了ListView、生成的HTML以及显示界面之间的关系,让人爱不释手。若是技术图书中多一些这样的插图,那该多好啊……

ListViewWebControl

[8] 15+ Free Visual Studio Add-Ins (15个免费的Visual Studio的插件)

这篇文章给出了15个非常有用的、免费的Visual Studio的插件:

  1. AnkhSVN :SVN工具
  2. C# SortCode Macro:帮助你排列源代码中属性、方法之间的相对位置(很好玩阿,也很有用!)
  3. CodeKeep Add-in:帮助你保存、查找代码片断
  4. Code Style Enforcer:强迫开发人员使用某种特定的编码规范
  5. CopySourceAsHtml:以HTML的方式拷贝源代码,适合写Blog的时候用……
  6. EncapsulateAllNonPrivateFields macro:将所有的非私有域用属性包围起来
  7. GhostDoc 2.1.1:自动、智能地生成代码的注释
  8. …………还有很多很多,强烈推荐