Remove whitespace from stylesheets and JavaScript files

Feb 12, 2006
There is a lot of whitespace in both stylesheets and JavaScript files. This is because of indented text and line breaks to name a few. They are typically also filled with comments to make them more maintainable. Believe it or not, it all adds up substantially to the overall file size. My tests show that stylesheets can be reduced by more than 30% and JavaScript files by 20%. That’s a lot. I made two C# classes, which implement the IHttpHandler interface, one for styleshe... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

The forgotten performance optimization tricks for ASP.NET

Feb 12, 2006
There are a lot of articles explaining the basics in performance optimization in ASP.NET. Here is one and here is another. It is important to know the basics and use them where appropriate. The basics include caching, viewstate optimization etc. But what do you do to optimize further, when you have implemented all the basic techniques? You search the Internet to find an article about it, just like this one. The conclusion of this article is: Make the response from the ser... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

Plan ahead to avoid surprises

Feb 11, 2006
A couple of colleagues and I talked about how unpleasant surprises could be avoided if you use the time needed to research the task before actually starting to work on it. It turned out, we all did it in our own distinct way, but the end results were the same. I, for instance, use scenarios as my primary tool for scoping a task. Some uses a more theoretic approach and some googles for the answer first and asks the questions later. These are all valid approaches in my opinion.... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

Compact a Microsoft Access database from .NET

Feb 9, 2006
Over time, a database becomes fragmented when it is used. This makes it grow in size and perform badly. Not the two qualities you want for your mission-critical data. Luckily, a lot of databases such as MS SQL Server and Oracle can compact it self, or at least have an interface for compacting so you can do it manually if you choose that approach. Microsoft Access also has this feature called “Compact and repair”. However, this function can only be called from within t... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

Create vCalendar items from ASP.NET

Feb 8, 2006
I recently build a web application that would let visitors add calendar items to their calendar program like Outlook or windows mobile smartphone, just by clicking a link and download the vCalendar item. vCalendar is a standard format for calendar items and is used widely across the industry by most calendar programs and tools. It is actually a simple text file, so it is not hard to create them dynamically. This is an example of a method in VB.NET that converts an ASP.NET pag... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

Remove whitespace from your ASP.NET page

Feb 7, 2006
In a normal webpage there is a lot of whitespace. We put it there in form of tabs and carriage-returns in order to make the document more maintainable and easier to read. But it has its price in terms of adding to the overall weight of the document in kilobytes and it takes longer for the browser to render a page with a lot of whitespace. This is especially true for IE6, which renders whitespace a lot slower than its counterparts. The problem is, we don’t want to write ht... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

.NET Profiler

Feb 6, 2006
What happened to that fantastic little tool that would find your memory screw-ups in a nice and friendly manor? I have been looking for a profiler for .NET 2.0 for the past year or so, when Visual Studio 2005 was still in beta, but haven't been successfull. I know that companies like Compuware make one, but they are rather expensive and in contrast to the good old .NET Profiler which was free, they are very expensive. If you know about a free/affor... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

AJAX - because there is no alternative

Feb 5, 2006
Say what???! <quote> AJAX is the most promising and coolest thing happening in the web world at the moment – a part of the web 2.0 movement! </quote> If you read any web 2.0 blogs it seems that IT IS the web 2.0 movement. Anyway, it represents a paradox in my opinion. Suddenly the AJAX wave comes sweeping from behind and now anybody who is anybody must implement it in some way, not to fall behind the hype of course. The tools are coming ... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

Internet Explorer 7.0 beta 2

Feb 5, 2006
For those of you who tried the beta 1 release, you would agree that a lot has happened since then. The design has improved, the RSS aggregator feature has improved along with a lot of things. The tabbed browsing also works much better; in fact, they work better than they do in Firefox. For a full review of IE7 beta 2 check Paul Thurrot’s site http://www.winsupersite.com/reviews/ie7_beta2.asp and download IE7 here. So what is the news? I think the news in... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

About the author

Mads Kristensen

Mads Kristensen
Program Manager at the Microsoft Web Platform team and founder of BlogEngine.NET.

More...

Month List

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.