asp.net mvc 3 RTM发布
asp.net mvc 3 已于2011-1-13日发布!下载地址: http://download.microsoft.com/download/3/4/A/34A8A203-BD4B-44A2-AF8B-CA2CFCB311CC/AspNetMVC3Setup.exe http://download.microsoft.com/downloa...
.NET 4.0框架中的新类: Lazy<T>
.NET 4.0里,在System名称空间中多了一个名为Lazy<T>新泛型类,该类的作用正如其名称所示。下面给出了一个使用的例子:var lazy = new Lazy<IList<OrderRow>>( &nbs...
XMLHttpRequests规范文档
XMLHttpRequestW3C Working Draft 20 August 2009This Version:http://www.w3.org/TR/2009/WD-XMLHttpRequest-20090820/Latest Version:http://www.w3.org/TR/XMLHttpRequest/Latest Editor Version:http://dev.w3.o...
介绍 IIS 7.5 的应用程序集区与新增的「虚拟账户」特性
一篇比较详细探讨IIS 7.5下面账户安全的文章,值得学习一下。 原文链接:http://blog.miniasp.com/post/2009/09/Introduce-IIS-75-Application-Pool-Identity-and-Virtual-Account.aspx来自于:The Will Will W...
C# 4.0中dynamic的用法
C# 4.0中dynamic的用法C# 4.0引入了一个新类型:dynamic,它是一个静态类型,然而该类型的对象实例却能够绕过静态类型检查的过程。在大多数情况下,该类型像object类那样工作。在编译时间,一个dyna...
在同一应用中混合使用ASP.NET窗体和ASP.NET MVC
在同一应用中混合使用ASP.NET窗体和ASP.NET MVC不是所有的ASP.NET MVC Web应用程序都需要从头创建,也许您希望将现有的ASP.NET应用移植到ASP.NET MVC。在同一个应用同时使用ASP.NE窗体和ASP.NET MVC可能吗?答案是...
ASP.NET MVC最佳实践(3)
3.在Global.asax中使用引导程序(Bootstrapper)如果您在global.asax的Application_Start方法中执行过多的任务(例如配置Ioc/DI、注册路由、模型绑定器、视图引擎、启动应用相关的后台服务,等等)。例如在最新的Oxi...
ASP.NET MVC最佳实践(2)
2.创建UrlHelper的扩展方法(extension method)来映射您的JavaScript, Stylesheet以及Image文件夹默认情况下ASP.NET MVC会创建Content, Scripts文件夹来存放它们,但是我不喜欢这种方式。我喜欢以下的文件夹组织方式...
ASP.NET MVC最佳实践(1)
1.创建UrlHelper类的扩展方法,生成相对路径URL请避免将控制器、行为、或者路由名称作为字符串到处传递,创建UrlHelper的扩展方法来封装它们,例如:1.public static class UrlHelperExtension 2...
ASP.NET MVC futures: 局部视图
在CodePlex站点中,有一个ASP.NET MVC Futures项目。它被封装在一个单独的Microsoft.Web.Mvc.dll中。该dll中包含很多有趣的特性,其中一个就是HtmlHelper的RenderAction方法。Html.RenderAction方法用来调用某个...
ASP.NET MVC futures: MVC控件概述
ASP.NET MVC框架中包含了一些预定义的HTML helper,可以起到简化输出HTML标记的效果,例如,其中的Html.TextBox helper方法就有以下4个重载形式:string TextBox(... string name);string TextBox(....
ASP.NET MVC Unleashed (6) (续)
Creating Custom HTML HelpersThe ASP.NET MVC framework ships with a limited number of HTML helpers. The members of the ASP.NET MVC team identified the most common scenarios in which you would need a he...
Silverlight 3 Beta 1发布
Silverlight 3 Beta 1发布下载:http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=d09b6ecf-9a45-4d99-b752-2a330a937bc4Expression Blend 3 Preview下载:http://expression.microsof...
ASP.NET MVC 1.0 正式发布
ASP.NET MVC 1.0已正式发布下载:http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4bCodeplex站点上的源码:http://www.codeplex.com/aspnet...
ASP.NET MVC Unleashed (4)
Chapter 4 - Understanding ViewsThe set of views in an ASP.NET MVC application is the public face of the application. ASP.NET MVC views are responsible for rendering the HTML pages that people ...
ASP.NET MVC Unleashed (3) (续)
Controlling How Actions are InvokedThe default algorithm for how the ASP.NET MVC framework invokes actions is pretty simple. If you type /Product/Details, for example, then the Details() m...
ASP.NET MVC RC 2 发布
ASP.NET MVC RC2已发布下载:http://www.microsoft.com/downloads/details.aspx?FamilyID=ee4b2e97-8a72-449a-82d2-2f720d421031&displaylang=enCodeplex站点上的源码:http://aspnet.codeplex.com/Release/...
ASP.NET MVC Unleashed (2) (续)
Creating the ViewsAn MVC view contains all of the HTML markup and view logic required to generate an HTML page. The set of views exposed by an ASP.NET MVC application is the public fac...
ASP.NET MVC Unleashed (2)
Chapter 2 - Building a Simple ASP.NET MVC Application In the previous chapter, we discussed all of the lofty goals of the ASP.NET MVC framework. In this chapter, we completely ignore ...
ASP.NET MVC Unleashed (1) (续)
Test Driven DevelopmentIn the previous section, we discussed the importance of building unit tests for your code. Test-driven development is a software design methodology t...