Quantcast
82
Posts
200
Comments

About Mads Kristensen

Mads Kristensen currently works as a Senior Developer at Traceworks located in Copenhagen, Denmark. Mads graduated from Copenhagen Technical Academy with a multimedia degree in 2003, but has been a professional developer since 2000. His main focus is on ASP.NET but is responsible for Winforms, Windows- and web services in his daily work as well. A true .NET developer with great passion for the simple solution.

http://www.madskristensen.dk/
Take Charge Of Your Online Life
· 1

You have a Facebook profile with a lot of connected friends. You share your interests and personal information with those friends. You also have a LinkedIn profile with just as many connected contacts with whom you share your job related information. All your pictures are in the hands of Flickr and your Twitter account tells your friends what you are up to on an hourly basis.

New Features for AJAX
A lot of people have requested that we added AJAX to certain parts of BlogEngine.NET, so we did.

Because of the rule of not using third party components, it is implemented using the build-in client-callback feature with some custom JavaScript. All in all very few lines of code was needed.

The calendar widget to the right on this site is now ajaxified for a more smooth navigation between months. The postback reloaded the page every time you navigated to a new month and that was not very cool. The performance is actually pretty descent I think.

When To Assembly

Over the years, I’ve used a lot of third-party components and self built control libraries. It an easy way to add functionality to your code projects – just reference the dll file and that’s it. This encapsulated functionality comes in most cases at a high cost. Imaging that you have an assembly of your homemade ASP.NET controls that you wish to use in your new website. In there you have a custom version of the GridView control that does something smart. On your new website this is exactly what you need, but you need it to behave a little different in a certain situation.

Remove The WWW Subdomain
· 5

Many websites have two points of entry for each individual page – one with www and one without. It means that if other websites link to yours, they might link to the same page using two different addresses.

Get Your Google Search Position in C#
· 5

If you want to test your position in Google for a certain search term, you can do so by using the Google website. By position I don’t mean Page Rank, but the actual place in the search results.

Making Accessible Menus in HTML

If you want to make your website validate the WAI or Section 508 accessibility guidelines, you have to separate adjacent links with more than white space.

C# Stock Quote Class

A couple of months ago one of my readers asked me to build a stock quote class that would automatically update the quote.

A Universal Data Type Checker

In many different scenarios we need to check if a string can be converted into an integer e.g.

ASP.NET: Working with Query Strings
· 3

In many cases we write our ASP.NET logic around query strings in order to show the right product page or what not.

ASP.NET: Access Client Info Server-side
· 1

I was playing around with HTTP request headers and for some reason started thinking about how limited information they provide about the requesting browser.

ASP.NET: Make GridView Control Accessible
· 12

The GridView is a new web control in ASP.NET 2.0 and is an improvement of the old DataGrid.

Implementing PICS and P3P in ASP.NET Headers

PICS (Platform for Internet Content Selection) and P3P (Platform for Privacy Preferences) are two really nice things to be aware of when developing web applications.

ASP.NET: HttpModule for Query String Encryption
· 20

URL parameters or query strings are often used to carry information that can be used by hackers to do identity theft or other unpleasant things.

Postbacks with Parameters in JavaScript
· 4

Whenever you use a Button or LinkButton it is because you want to be able to do a postback when it is clicked.

ASP.NET: Keep the Content-type in Sync

Most websites include a meta-tag that tells the browser what content-type the document is. It looks like this:

XML Code Comments: What, Why and How
· 1

During the years I’ve seen a lot of different ways of commenting code – some good and some bad.

ASP.NET: Easily Block DoS Attacks

Denial of Service (DoS) attacks are becoming a more and more common way to bring websites and servers down.

ASP.NET: Choose a Standard Number Format

Today, I ran into an issue regarding the way numbers are parsed in different cultures, which resulted in very wrong numbers.

Overload Operators the Right Way in C#

It’s a good rule of thumb to overload the equality operators on classes.

ASP.NET – Block IP Addresses from Your Site
· 2

Recently, one of my readers asked me how to block certain IP addresses from accessing his ASP.NET website.

ASP.NET – Toggle Non-server Control Visibility

Since ASP.NET 1.0 you had the ability to toggle the visibility of any HTML tag with the runat=”server” attribute.

Simple Tool for Website Monitoring

For quite a while now, I have needed a simple website monitoring tool that would check the uptime of my websites.

The Create GUID menu item is back

The Visual Studio 2005 launch improved so many things from older versions – some big and some small.

ASP.NET: Parse Controls Dynamically
· 1

Most of the primitive types in the CLR have a Parse method that takes a string and parses it into its own data type.