Subscribe to this Blog

Subscribe to this Blog

Tips - Stephen Walther on ASP.NET MVC

Browse by Tags

All Tags » Tips (RSS)

Essential Visual Studio Tips & Tricks that Every Developer Should Know by swalther

In this blog entry, I list the essential tips and tricks that every developer who uses Visual Studio 2008 should know. I wanted to keep this list brief. I also wanted to focus on only those tips and tricks that I use on a daily basis. Almost all of these...
Filed under: , ,

ASP.NET MVC Tip #45 – Use Client View Data by swalther

In this tip, I explore one approach to building Ajax applications with ASP.NET MVC. I show how you can use view data when building Ajax applications with ASP.NET MVC in the same way as you would use view data when building server-side application. I demonstrate...

ASP.NET MVC Tip #44 – Create a Pager HTML Helper by swalther

In this tip, I demonstrate how you can create a custom HTML Helper that you can use to generate a user interface for paging through a set of database records. I build on the work of Troy Goode and Martijn Boland. I also demonstrate how you can build unit...
Filed under: , ,

ASP.NET MVC Tip #43 – Use Data Annotation Validators by swalther

In this tip, I demonstrate how to take advantage of the validators from the System.ComponentModel.DataAnnotations namespace in an MVC application. You can take advantage of these validators to validate form data before submitting the form data into a...
Filed under: , ,

ASP.NET MVC Tip #42 – Use the Validation Application Block by swalther

In this tip, I demonstrate how you can use the Microsoft Enterprise Validation Application Block within an MVC application to perform both basic and advanced form validation. The Validation Application Block supports a rich set of validators that you...
Filed under: , ,

ASP.NET MVC Tip #41 – Create Cascading Dropdown Lists with Ajax by swalther

In this tip, I demonstrate three methods of creating cascading drop down lists in an MVC application. First, I demonstrate how to write JavaScript code to update one dropdown list when another dropdown list changes. Next, I show you how you can retrieve...
Filed under: , ,

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: , ,

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: , ,

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: , ,

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: , , ,
More Posts Next page »