Browse by Tags

All Tags » MVC Framework (RSS)

What role does the User Control has in the ASP.Net MVC? by Fredrik N

Several developers have asked me about the use of User Controls within the ASP.Net MVC, so I decided to write down what I think about it. A User Control is a piece of the User Interface which is sometimes created to be reused on several of Web Forms,...
Filed under: ,

ASP.Net MVC Framework - How do I design my apps with the MVC pattern and +P by Fredrik N

When I'm playing around with the ASP.NET MVC Framework I have created several prototype applications with different solutions to solve some "problems." In this post I will write down how I combine a Presentation Model (When I talk about Presentation Model...
Filed under: ,

ASP.Net MVC Framework pre- Preview 3 - A Step by Step guide to create a simple web app. by Fredrik N

Yesterday I posted a step by step guide by using the Preview 2 of the ASP.Net MVC Framework, the following is an updated version that targets the pre-release of the Preview 3 version of the ASP.Net MVC Framework. In this post you will learn how to use...
Filed under: ,

ASP.Net MVC Framework Preview 2 - A step by step guide to create a simple Web Application by Fredrik N

UPDATE: When I cerated a new post on my blog about the pre-release of Preview 3, I replaced this one with the new post. I did my best to recover the content. Sorry! In this post you will learn how to use most of the new features in the Preview 2 version...
Filed under: ,

ASP.Net MVC Framework 2 - The Binding helper class (UI-mapper) by Fredrik N

In this post I’m going to explain the use of the ASP.Net MVC Framework’s BindingHelperExtensions class and how to use it as what I call a UI mapper (map user input fields to an object). The BindingHelperExtensions has the following five methods: T ReadFromRequest<T>...
Filed under: ,

ASP.Net MVC Framework 2 - Interception and creating a Role Action Filter by Fredrik N

With the ASP.Net MVC Framework Preview 2, we can use Action Filters. An Action Filter can be used to intercept actions before and after an Action method of a Controller is executed. By using Action Filters you can for example add code that will check...
Filed under: ,

ASP.Net MVC Framework 2 - Define Routes in Web.config by Fredrik N

Something I like with ASP.Net MVC Framework Preview 2 is the RouteValueDictionary used by the Route class’s Defaults, Constraints and DataTokens property, before they use an anonymous type. Because the properties are now a specific type it’s much easier...
Filed under: ,

ASP.Net MVC Framework - Using Forms Authentication by Fredrik N

NOTE: THIS Post was written when ASP.NET MVC Framework was in a early Preview stage. This post is about using Forms Authentication with the MVC Framework. I only want to let you know that this is a simple and fast “hack” only to show a simple solution...
Filed under: ,

ASP.Net MVC Framework - Assign a ViewFactory to a Controller by Fredrik N

I have seen several posts about how to assign a ViewFactory to a Controller, most of the case the code looks like this: public class HomeController : Controller { public HomeController() { this.ViewFactory = new MyViewFactory(); } } The ViewFactory is...
Filed under: ,

MVC - Expression Language and custom tags by Fredrik N

I have seen several developers that want and have no problem by using server-side code blocks in a View when they are working with the MVC pattern. But I think the server-side code block should be used only in some advanced and special occasions and instead...
Filed under: ,
More Posts Next page »