Subscribe to this Blog

Subscribe to this Blog

August 2008 - Posts - Stephen Walther on ASP.NET MVC

August 2008 - Posts

15
Comments

ASP.NET MVC Tip #40 - Don’t Cache Pages that Require Authorization by swalther

In this tip, Stephen Walther warns you to avoid making a mistake that can result in private data being displayed to unauthorized users. Imagine that you are building a financial services website. Each user of the website can log in and view a page that...
Filed under: , ,
28
Comments

ASP.NET MVC Tip #39 – Use the Velocity Distributed Cache by swalther

Improve the performance of ASP.NET MVC applications by taking advantage of the Velocity distributed cache. In this tip, I also explain how you can use Velocity as a distributed session state provider. The best way to improve the performance of an ASP...
Filed under: , ,
22
Comments

ASP.NET MVC Tip #38 – Simplify LINQ to SQL with Extension Methods by swalther

In this tip, Stephen Walther demonstrate how you can create new LINQ to SQL extension methods that enable you to dramatically reduce the amount of code that you are required to write for typical data access scenarios. By taking advantage of LINQ to SQL...
Filed under: , ,
15
Comments

The Evolution of MVC by swalther

Take Model-View-Controller as an example. It's often referred to as a pattern, but I don't find it terribly useful to think of it as a pattern because it contains quite a few different ideas. Different people reading about MVC in different places take...
Filed under: ,
11
Comments

ASP.NET MVC Tip #37 – Create an Auto-Complete Text Field by swalther

In this tip, Stephen Walther demonstrates how you can create an auto-complete text field in an MVC view by taking advantage of the Ajax Control Toolkit. He explains how you can create a custom Ajax Helper that renders the necessary JavaScript. In the...
Filed under: , , ,
55
Comments

ASP.NET MVC Tip #36 – Create a Popup Calendar Helper by swalther

In this tip, Stephen Walther demonstrates how you can create a JavaScript popup calendar (date picker) that works within an ASP.NET MVC view. The calendar is created with the AJAX Control Toolkit. A script file only version of the AJAX Control Toolkit...
Filed under: , ,
8
Comments

New ASP.NET MVC Videos and Tutorials by swalther

15 new ASP.NET MVC videos were just published at the http://www.ASP.net/mvc website. The first 10 videos are basic tutorials on the ASP.NET MVC framework. If you haven’t had a chance to play with ASP.NET MVC yet, these tutorials are a great introduction...
Filed under: ,
17
Comments

ASP.NET MVC Tip #35 – Use the NHaml View Engine by swalther

In this tip, I explain how you can use the NHaml view engine as the view engine for an ASP.NET MVC application. I demonstrate how to create NHaml views that display both static content and database records. I also discuss how you can use master pages...
Filed under: , ,
19
Comments

ASP.NET MVC Tip #34 – Dispose of Your DataContext (or Don’t) by swalther

In this tip, I demonstrate how you can dispose of a DataContext within an ASP.NET MVC controller. Next, I argue that there is no compelling reason to do this. Several people have emailed me recently with the same question about whether or not it is important...
Filed under: , ,
13
Comments

ASP.NET MVC Tip #33 – Unit Test LINQ to SQL by swalther

In this tip, I demonstrate how to unit test the LINQ to SQL DataContext object by creating a Fake DataContext. You can perform standard LINQ to SQL inserts, updates, deletes and LINQ queries against the Fake DataContext. I’ve struggled for the past...
Filed under: , ,
More Posts Next page »