ASP.Net MVC Release Candidate is Available

ASP.Net MVC Release Candidate is Available Scott Guthrie has just announced that the ASP.NET MVC 1.0 Release Candidate is out. Few of the highlights of this release: Visual Studio Tooling Improvements Add Controller Command Add View Command Adding and Customizing Scaffold Templates Go To Controller / Go To View MSBuild Task for Compiling Views View Refactoring Support View Improvements Views without Code-Behind Files Model Property ...
no comments

ASP.Net MVC RSS Feed Action Result

11 בינואר 2009

ASP.Net MVC RSS Feed Action Result ASP.Net MVC Controller Actions usually returns an object that inherits from the ActionResult class. public abstract class ActionResult {   public abstract void ExecuteResult(ControllerContext context); } ASP.Net MVC ships with several Action Results: ContentResult – Simply writes the returned data to the response. EmptyResult – Returns an empty response. HttpUnauthorizedResult – Returns Http 401 code for non authorized access. JsonResult – Serializes the response to Json. RedirectResult – Redirects to another Url. RedirectToRouteResult –...
4 comments

ASP.Net MVC Route Constraints

ASP.Net MVC Route Constraints ASP.Net MVC has a powerful Routing Engine that allows mapping between URL Routes and Controller Actions. The default route that is created with an empty ASP.Net MVC application is: {controller}/{action}/{id} But, according to application requirements, other routes can be used, with parameters not necessarily of type string and int, and may require certain constraints to take place. For example, my previous post about Anatomy of an ASP.Net MVC Application can be found at: http://blogs.microsoft.co.il/blogs/bursteg/archive/2008/12/21/anatomy-of-an-asp-net-mvc-application.aspx, and has a route similar to: /blogs/{blogName}/archive/{year}/{month}/{day}/{*permalink} Each one of the parameters can be checked for validity...