Archive for the 'ASP.NET' Category

.less – Dot Less Dynamic CSS Processor for .NET

Of the three textual formats that make up the main pillars of web development (HTML, CSS, and JavaScript), CSS has had the least attention in terms of server-side processing. HTML is obviously well covered, with frameworks such as ASP.NET. JavaScript is starting to be covered with compilers such as Google’s Closure Tools. Until now however [...]

Debug.Assert Considered Pointless

One thing I was told as a young programmer was to make good use of assertions for checking code. As time goes by however, I can see less and less use for assertions. I’m starting to think they’re pretty useless.

Forcing The Browser To Cache Dynamic Content In ASP.NET

Usually, you don’t want the browser doing any kind of caching on dynamic content served from a generic handler (.ASHX) in ASP.NET – afterall, the content is usually changing (dynamic). Sometimes however, it’s handy to use a handler to serve content that effectively never changes. Here’s how.

HOWTO: Repair Your Vista 64-bit System After Internet Explorer 8

Internet Explorer 8 (IE8) has now been released to the public, and while it’s not enough to shift me from Firefox, I’m happy that it offers standards-compliant rendering and a useful “compatibility view”, meaning that web developers can essentially test on IE7 and IE8 without needing virtual machines. Unfortunately, when installed on 64-bit Vista (x64), [...]

Closures: Simplify Event Handling Code

Closures are a really useful programming construct, but as they’re only just appearing in the C-family languages, they’re relatively new to me. In this article I show how they can be used to vastly simplify event-handler code in web development.

Controlling Browser Content Expiration in ASP.NET

Correctly controlling content expiration is a tricky thing. You need to balance two goals: getting the browser to cache as much as possible to reduce page load times and bandwidth, versus not showing the user stale content. In this article I’ll cover a simple technique (with code) to solve this issue in ASP.NET for stylesheets [...]

How-To: Delete a cookie in ASP.NET

Deleting a cookie from ASP.NET is something that trips up a lot of people (myself included when I first started ASP.NET coding). Here’s how:

Disaster Strikes!

We finally launched our new product at the start of this month. Basically, EasyAs123Web.com will allow small businesses to create and edit their own website, for about $150 per year. Anyway, enough plugging. On to a bit of background.
One of the features I wanted to include was seamless image integration with the user’s chosen website [...]

HTML Editor for ASP.NET AJAX

For our soon-to-be-beta’d new web application, we had a requirement for a rich-text-style editor that would sit nicely within our ASP.NET / AJAX website. I looked at a few, but on the whole getting them to work with ASP.NET was non-trivial. In the end, I went for the Winthusiam Html Editor, and I can definitely [...]