Archive for the ‘ASP .NET’ Category

Why I Love The Microsoft Web Platform (And How I Built an Enterprise Ready Site in 48hrs)

There is no other web platform in the world that lets you build a fully functional, optimized, and scalable enterprise ready website in under 48hrs. Microsoft’s web platform provides you with a powerful set of tools, servers, and tech that can help you take an idea in your head and make it a reality within [...]

Part 2 – Object Oriented JavaScript (MS AJAX)

I recently gave a presentation on Object Oriented JavaScript (OOJ) and received some good feedback so the next few posts will be a more verbose version of that presentation. AGENDA Part 1 – JavaScript Review Part 2 – How Part 3 – Why Use OOJ? Part 4 – Example Part 2 – How Custom Objects [...]

Part 1 – Object Oriented JavaScript (Using MS AJAX)

I recently gave a presentation on Object Oriented JavaScript (OOJ) and received some good feedback so the next few posts will be a more verbose version of that presentation. AGENDA Part 1 – JavaScript Review Part 2 – How Part 3 – Why Use OOJ? Part 4 – Example Part 1 – JavaScript Review Before [...]

Use ExpressionBuilder To Avoid “Server tags cannot contain constructs”

The ExpressionBuilder is still unknown to a lot of developers that haven’t experienced the sadistic pleasure of localizing a web application. It was introduce in ASP .NET 2.0 and allows you to bind values to control properties using declarative expressions. I learnt about the ExpressionBuilder when I was doing some research on localization best practices [...]

UI Unit Testing with WatiN – Part #2 – Tips & Tricks

In my first post about WatiN I introduced the open source API, and provided a simple demo to give a taste of what WatiN is capable off. I ended that post with a promise to write a follow up on some of the lessons I’ve learnt. Here they are: .NET control ids are not friendly [...]

Running WCF Ajax-enabled services on Windows Server 2008

Yesterday I was trying to run an ASP .NET website that leveraged multiple WCF Ajax-enabled services on a Windows Server 2008 box under an IIS7 application but kept running into the following JavaScript error: "Namespace.Service is undefined". One of my co-workers had run into this recently and told me the problem was WCF Activation is [...]

A better alternative to using alert() for debugging

We’ve all used, and unfortunately some people continue to use, alert() to help debug JavaScript. Thankfully the Microsoft Ajax Library has a Sys.Debug class that exposes methods for logging messages to the browser’s JavaScript console. For reference: To log a message to the console use: Sys.Debug.trace(“Log this message to the console”); To dump an object [...]

UI Unit Testing with WatiN – Part #1 – Introduction

There is an arsenal of tools readily available for unit testing web applications. Unit testing both the data access and business logic tiers is a common best practice and a requirement for developing complex web applications. Solutions typically contain hundreds of unit tests exercising every possible use case and edge case covering the data access [...]

Using jQuery with ASP .NET AJAX to create a cascading CheckBoxList

Unless you’ve been living under a rock you know that Microsoft has recently partnered with jQuery and will be shipping jQuery with future versions of Visual Studio. When the announcement was made I didn’t know much about jQuery, how it would work with ASP .NET AJAX, or how it would interface with Visual Studio. I [...]

Abstracting the RegularExpressionValidator’s ValidationExpression

The RegularExpressionValidator is one of the most useful validators that come standard with ASP .NET. The RegularExpressionValidator allows you to validate, on both client-side and server-side, whether the value of an associated input control matches the pattern specified in the ValidationExpression property. It isn’t uncommon to see a web application littered with almost identical validation [...]