JavaScript: More powerful than you might think

So many times I have heard complaints about the flaws of JavaScript. Many people say it’s a kiddy language, it’s error prone, it’s a pain to work with and it lacks all of the good stuff that we have in strong-typed languages such as Java and .NET. But I disagree here, although JavaScript has it’s […] Read More...

Elegant web forms: wrap up and example

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. 1. Screenshot of the sample app The example I’m using has a […] Read More...

jQuery Templates and ASP.NET User Controls

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 did with the user control. You can get the plugin […] Read More...

The Repeater – User Control Pattern

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 twice. You cannot reuse your layout or markup outside of the […] Read More...

The coolest ASP.NET server control

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 control and a GridView I’m going to show you a little bit […] Read More...

AJAX with jQuery and web services

In this post I will show you how you can use jQuery to call ASP.NET web services (.asmx). Some people prefer to use page methods, but I find it nicer to group all my AJAX-related calls in one web service. That service then serves as a façade to the inner workings of the application. Web […] Read More...

Useful Javascript extensions

In my previous post I added the extensions.js-file to my JavaScript library. I did this because I feel there are some things that I often do and I abstracted them out to a kind of library on top of jQuery. I will walk you through the different functions it offers. You can of course take […] Read More...

Setup and tools

In this post I will talk you through the basic setup of our web application and all the tools you need. Don’t worry, you don’t have to do all these steps manually, I will provide you with a new project template later on so you can always start with the basic template. I just want […] Read More...

Preface

In this series of posts I will be talking about and demonstrating some concepts on how to make web forms programming more elegant. With ASP.NET web forms, sometimes things can get quite messy. This is mostly because ASP.NET wants to hide that you are programming over HTTP. It wants you, the developer, to take on […] Read More...

New series

Hello all, I have just posted the first posts in my series about elegant web forms. In this series I will explain how to go about creating ASP.NET web forms that are not cluttered with view states, big ugly tables and scrit that you don’t know of. I will be talking about jQuery, my love […] Read More...