本周ASP.NET英文技术文章推荐[09/23 - 09/29]

来源:百度文库 编辑:神马文学网 时间:2024/04/29 10:31:58
[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阶段,并引入了很多所谓“引人注目”的功能:
IIS 7.0 Extensibility (and why it is cool)
IIS 7.0 FTP Publishing Service
IIS 7.0 Media Pack Bit-Rate Throttling Module
IIS 7.0 Remote Manager Administration Tool
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的这个东西就可以:

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

[4] Animating the ModalPopupExtender (为ModalPopupExtender添加动画效果)
ASP.NET AJAX Control Toolkit中的ModalPopupExtender非常有用,而且样式看起来也非常漂亮。这篇文章就让ModalPopupExtender“百尺竿头,更进一步”,为其添加了动画效果。
使用起来非常简单:
<% -- Fade in when first displayed %>
最终效果可以看一下这个演示页面: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 clearlydifferent. ObjectDataSource enables you to take advantage of RAD databinding 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以及显示界面之间的关系,让人爱不释手。若是技术图书中多一些这样的插图,那该多好啊……

[8] 15+ Free Visual Studio Add-Ins  (15个免费的Visual Studio的插件)
这篇文章给出了15个非常有用的、免费的Visual Studio的插件:
AnkhSVN :SVN工具
C# SortCode Macro:帮助你排列源代码中属性、方法之间的相对位置(很好玩阿,也很有用!)
CodeKeep Add-in:帮助你保存、查找代码片断
Code Style Enforcer:强迫开发人员使用某种特定的编码规范
CopySourceAsHtml:以HTML的方式拷贝源代码,适合写Blog的时候用……
EncapsulateAllNonPrivateFields macro:将所有的非私有域用属性包围起来
GhostDoc 2.1.1:自动、智能地生成代码的注释
…………还有很多很多,强烈推荐