Why?
In ASP.NET MVC, applications are divided into horizontal layers, which is
reflected in the project structure:
* Controllers
* Views
* Models
* Scripts
* Style
It’s a good idea to divide you application into logical parts. While the idea of
horizontal slices might look like a...
To conclude the series on elegant web forms, I will walk you through a full
example of a simple company and contact management tool. The app in itself
doesn’t do much, but it serves to illustrate the points mentioned in the
previous posts.
[![elegant_...
After my previous article, where I showed you how to use user controls as views,
in this post I will show you how to mix in some jQuery templating.
The jQuery templates plugin is basically a way to make views in JavaScript, much
like we...
In my previous post in this series I showed you how a repeater is a very clean
ASP.NET server control. It has a few problems though:
* You cannot bind to a strongly-typed object.
* If you want alternating items you have to write the markup...
My favorite control, hands down, in the ASP.NET toolbox is the Repeater. Why?
Because is it’s the cleanest of them all. The repeater does what it says,
nothing less, nothing more: it repeats. Just to show you the difference between
a simple Repeater...