Stephen Walther on ASP.NET MVC
-
ASP.NET MVC Tip #17 – How to Run an ASP.NET MVC Application
In this tip, I explain the different options for running an ASP.NET MVC application from Visual Studio 2008. I recommend that you run an ASP.NET MVC application directly from the ASP.NET Development Web Server.
-
ASP.NET MVC Tip #16 – Create ASP.NET MVC Macros
In this tip, I show you how you can create a Visual Studio 2008 macro that creates a new MVC controller, view folder, and controller unit test with a single command.
-
ASP.NET MVC Tip #15 – Pass Browser Cookies and Server Variables as Action Parameters
In this tip, I demonstrate how you can pass browser cookies and HTTP server variables to controller action methods in the same way as you can pass form and query string parameters.
-
ASP.NET MVC Tip #14 – Create a Template Helper Method
In this tip, you learn how to create and use templates in the MVC framework that you can use to display database data. I show you how to create a new MVC Helper method named the RenderTemplate() method.
-
ASP.NET MVC Tip #13 – Unit Test Your Custom Routes
In this tip, I demonstrate how you can create unit tests for the routes in your ASP.NET MVC applications. I show how to test whether a URL is being mapped to the right controller, controller action, and action parameters.
-
ASP.NET MVC Tip #12 – Faking the Controller Context
In this tip, I show you how to test ASP.NET intrinsics when building unit tests for an ASP.NET MVC application. I show you how to create a standard set of fake objects that enables you to fake the current user, the current user roles, the request parameters, session state, and cookies.
-
An Introduction to xUnit.net for ASP.NET MVC Developers
The purpose of this blog entry is to provide you with an introduction to the xUnit.net unit testing framework, the newest unit testing framework for the .NET framework. I want to demonstrate how you can use the xUnit.net framework when practicing test-driven development. In particular, I focus on using xUnit.net when building an ASP.NET MVC application.
-
ASP.NET MVC Tip #11 – Use Standard Controller Action Names
In this tip, I recommend that you use standard names for your controller actions in order to make your code more transparent to other developers.
-
ASP.NET MVC Tip #10 - Prevent URL Manipulation Attacks
In this tip, I explain how hackers can steal sensitive information from an ASP.NET MVC website by manipulating URLs. I also discuss how you can build unit tests to prevent this type of attack.
-
ASP.NET MVC Tip #9 – Create a GridView View User Control
In this tip, I show you how to build an ASP.NET MVC View User Control that accepts a set of database records and renders the records in an HTML table automatically. The advantage of using a View User Control is that you can customize the rendering of particular columns.