2007

170 articles published in 2007

  1. Examples on new BlogEngine.NET 1.3 features

    · 3 min read

    Demos of some new features in BlogEngine.NET 1.3

  2. Christmas present - BlogEngine.NET 1.3 released

    · 3 min read

    BlogEngine.NET 1.3 has just been released. This is a list of new features

  3. Choosing the right URL structure

    · 3 min read

    I've changed the URL structure in BlogEngine.NET 1.3

  4. A state aware generic list

    · 3 min read

    How to keep track on the generic List<T> and if it's changed or not

  5. 3-tier web applications

    · 3 min read

    The premise for the 3-tier web application is wrong

  6. Has privacy limited our possibilities?

    · 2 min read

    Big Web 2.0 API's are restricting the amount of information for developers

  7. Create your own spam filter extensions

    · 2 min read

    My last post about comment spam fighting resulted in a lot of e-mails from readers asking how to create their own spam fighting logic in BlogEngine.NET 1.3. So I decided to show a simple extension that listens for...

  8. Fighting spam attacks

    · 2 min read

    Using the 404 HTTP status header to fight of spam attacks

  9. Use the provider model in ASP.NET 2.0

    · 2 min read

    Get starting using the provider model of ASP.NET

  10. Code samples on display

    · 1 min read

    I've decided to gather the most popular code samples on a single page.

  11. Make your blog talk

    · 3 min read

    How to automatically and free have offer a narrated version of your blog.

  12. Protect your links from Visio

    · 2 min read

    Visio's sitemap feature can be dangerous if you are not prepared for it.

  13. Website architecture is backwards

    · 3 min read

    Any application ever build have an architect designing it. That architect could be a software architect, lead developer or just a regular code monkey and probably all of them at some point or the other. The point is that...

  14. Show IIS process information

    · 1 min read

    An aspx page that shows the IIS process information for debugging purposes

  15. Keeping web services simple

    · 4 min read

    Create custom cross platform web services that can use both POST and GET.

  16. Copenhagen geek dinner update 2

    · 1 min read

    Latest info on the November 2007 Copenhagen geek dinner

  17. BBCode extension for BlogEngine.NET 1.2

    · 2 min read

    Add a BBCode parser to your comments and/or posts in BlogEngine.NET

  18. Dangers of the new ASP.NET MVC framework

    · 3 min read

    Will the MVC framework divide developers and create a dual ASP.NET community?

  19. First Facebook application

    · 2 min read

    My first Facebook application build for users of ZYB

  20. Supporting mobile devices

    · 2 min read

    How to detect mobile devices in ASP.NET

  21. Geek dinner Copenhagen update 1

    · 1 min read

    Update on the November 2007 geek dinner in Copenhagen.

  22. New FxCop 1.36 beta 2 released

    · 1 min read

    FxCop 1.36 has some new rules that rocks

  23. Old school AJAX call that just works

    · 2 min read

    An old school AJAX call using the JavaScript Image object

  24. Remove whitespace from your pages

    · 2 min read

    Ok, this is not new. I’ve also written about this a few times in the past . The thing is that removing whitespace is a very tricky discipline that is different from site to site. At least that was what I thought until...

  25. Remove generated JavaScript from your pages

    · 2 min read

    Clean up your HTML by removing auto-generated JavaScript in ASP.NET

  26. The expando attribute

    · 1 min read

    How to use the RegisterExpandoAttribute method in ASP.NET 2.0

  27. Copenhagen geek dinner

    · 1 min read

    Let's start a Copenhagen geek dinner tradition

  28. Re-enable request validation in ASP.NET

    · 2 min read

    Enable HTML input without disabling request validation in ASP.NET

  29. Tag mapping in ASP.NET

    · 2 min read

    Shows how to use tag mapping to convert server controls to other types at compile time

  30. New BlogEngine.NET videos

    · 1 min read

    New videos about BlogEngine.NET are released

  31. Combine multiple stylesheets at runtime

    · 3 min read

    I often use multiple stylesheets in a single website to keep things nicely separated. The only problem is that the client has to make multiple HTTP requests to get them all. Today, I thought it was about time I did...

  32. URL parameter injections

    · 1 min read

    SQL injection attacks are performed on this site on a daily basis. Scary...

  33. Making screencasts

    · 2 min read

    Windows Media Encoder is good. Windows Movie Maker is not.

  34. BlogEngine.NET 1.2 is released

    · 2 min read

    The release announcement of BlogEngine.NET 1.2

  35. New events in BlogEngine.NET 1.2

    · 2 min read

    A list of all the events exposed by BlogEngine.NET 1.2

  36. Evolution of code lines

    · 2 min read

    Code metrics for all the releases of BlogEngine.NET

  37. Translators for next version of BlogEngine.NET needed

    · 1 min read

    Please help us translate the next version of BlogEngine.NET

  38. Remove default HTTP modules in ASP.NET

    · 2 min read

    Remove the unused HttpModules that is default in ASP.NET

  39. URL rewrites and the HtmlForm action attribute

    · 3 min read

    A custom HtmlForm that renders the action attribute correct for use with URL rewriting

  40. Worst spam day so far

    · 2 min read

    I've never recieved as much spam as I did today. Comment, trackback and referrer spam.

  41. Load user controls from an HttpHandler in ASP.NET

    · 2 min read

    A way to load a user control from an HttpHandler (.ashx) using reflection

  42. HTTP compression of WebResource.axd and pages in ASP.NET

    · 3 min read

    A HttpModule for compressing .aspx pages and the WebResource.axd handler in ASP.NET using C#

  43. Resolve and shorten URLs in C#

    · 3 min read

    Shows how to auto resolve URLs in a text string, turn them into hyperlinks and shorten the anchor text

  44. New search feature

    · 2 min read

    The new search feature of BlogEngine.NET 1.2 is demonstrated

  45. Cookies and Unicode characters

    · 2 min read

    Remember to URL encode your cookie values for Unicode support

  46. I’m ashamed – very ashamed

    · 2 min read

    I just got my first computer virus. Ohh the shame...

  47. User control injection in BlogEngine.NET 1.2

    · 2 min read

    Shows how to inject user controls directly into a blog post

  48. Navigational header links

    · 1 min read

    How to improve a website's accessibility by using header links

  49. New job – going mobile

    · 1 min read

    I'm starting a new job as a senior ASP.NET developer at Zyb

  50. Code quality sessions

    · 3 min read

    Describes the steps to take just before a release to ensure code quality

  51. Running FxCop and the quirks

    · 2 min read

    Using FxCop can bring pain if you don't know the quirks and what to ignore

  52. Time zone trouble

    · 2 min read

    How to play safe when dealing with time zones.

  53. Prepare for growing projects

    · 3 min read

    These are a small collection of the typical pitfalls I’ve experienced myself over the years developing ASP.NET applications.

  54. BlogEngine.NET goes mainstream

    · 1 min read

    BlogEngine.NET just got accepted to be a starter kit on the www.asp.net website

  55. Invalid postback or callback argument

    · 2 min read

    Shows that the exception is something to be happy to get. It means you're fighting spam.

  56. YSlow performance challenge

    · 3 min read

    I've been optimizing my blog using YSlow and now I challenge Simone to do the same.

  57. Ping using XML-RPC in ASP.NET

    · 2 min read

    Shows a class that can ping various services using RPC-XML

  58. Cool projects that don’t exist

    · 2 min read

    A list of three components for ASP.NET I would like that someone would write.

  59. Make your ASP.NET application extendable

    · 2 min read

    Shows how to make an ASP.NET application extendable

  60. Secure your forms in ASP.NET

    · 2 min read

    Do we really need CAPTCHA's to prevent robots posting to our web forms? Not if you run ASP.NET 2.0. Whether you use a form for member logins, blog comments or a web shop you want to keep it as secure and tamper proof as...

  61. New extension model in BlogEngine.NET

    · 3 min read

    Shows how to utilize the new extension model of BlogEngine.NET

  62. Principles of simplicity

    · 6 min read

    A list of 10 principles of simplicity

  63. Trackback spam fighting

    · 5 min read

    A short listing of the principles of trackback spam fighting.

  64. Webcast on building BlogEngine.NET themes

    · 1 min read

    Earlier today, Al Nyveldt aired a webcast on how to make BlogEngine.NET themes . It really shows how you can leverage all the power of ASP.NET in your themes. He uses code-behind files to dynamically change the output of...

  65. Beware of the FileInfo.OpenText() method

    · 2 min read

    Don't use FileInfo.OpenText().ReadToEnd() because it doesn't release the file handle

  66. Release of BlogEngine.NET 1.1

    · 1 min read

    BlogEngine.NET 1.1 is being officially released to the public

  67. Localizing ASP.NET - which is best?

    · 1 min read

    Is it ok to use local resource files?

  68. Generate links to your blog

    · 3 min read

    A trick to get more people linking to your blog

  69. Hidden feature of BlogEngine – conversions

    · 2 min read

    Shows you how to take advantage of 2 JavaScript events in BlogEngine.NET

  70. Testing your code – follow up

    · 1 min read

    I’ve received quite a few e-mails about my last post about unit testing and have followed some reactions around the blogosphere as well. There seem to be common believe that I don’t like unit testing or advice against...

  71. Testing your code

    · 6 min read

    How and when I unit test an application or class library

  72. Heading off – be right back

    · 2 min read

    Heading of to Italy on vacation.

  73. Remove the X-AspNet-Version header

    · 2 min read

    Shows how to remove the X-AspNet-Version HTTP header by changing only the web.config

  74. Don’t use the ThreadPool in ASP.NET

    · 3 min read

    Why the threadpool is a bad choice for ASP.NET applications and what to do instead.

  75. Implement micro formats on your website

    · 5 min read

    Shows how to implement a range of different micro formats to your own website.

  76. Think twice before using any third-party assemblies

    · 4 min read

    Why BlogEngine.NET doesn't use any third-party libraries or components

  77. Comment the class before coding it

    · 2 min read

    Turn your small home project into well architected pieces and save time.

  78. What became of VB.NET?

    · 2 min read

    I wonder where all the VB.NET code example sites went.

  79. What type of developer are you?

    · 2 min read

    I took a test showing what type of developer I am. Take the test here.

  80. Life without TV – is it possible?

    · 2 min read

    Talking about my decision to give up my TV to releave stress

  81. Impersonation across threads in ASP.NET

    · 1 min read

    Shows how to pass the impersonation along to the a new thread.

  82. Optimize HTTP requests and web service calls

    · 1 min read

    Shows how to raise the connection limit in ASP.NET

  83. Section 508 and WAI triple A accessibility

    · 2 min read

    The story of how I validated my blog

  84. Bind countries from CultureInfo class in C#

    · 2 min read

    Shows how to bind countries to a dropdown list without any XML file or database table

  85. Best developer video of the year

    · 1 min read

    Douglas Crockford speaks of code quality. A must-see video for all developers.

  86. Google Sitemap and BlogEngine.NET

    · 1 min read

    Explains how to take advantage of the Google Sitemap generated automatically by BlogEngine.NET

  87. Official release of BlogEngine.NET 1.0

    · 2 min read

    The official release of BlogEngine.NET 1.0 is announced

  88. Print Visual Studio project

    · 1 min read

    Things that the users would expect to find in an application should always be there.

  89. URL parameters in ClickOnce applications

    · 1 min read

    Shows in two simple steps to enable query strings in ClickOnce applications

  90. Worst regular expression ever

    · 1 min read

    Warning! This is the worst regex ever made

  91. See who calls any method in C#

    · 1 min read

    A public method that returns the caller of any method in the stack

  92. Web Application Projects vs. Web Site Projects

    · 2 min read

    When Visual Studio 2005 was released together with ASP.NET 2.0, the web project model was totally changed from the ASP.NET 1.x model. It took some time for me to get used to it, and in the beginning I didn’t like it...

  93. Validate a form before submitting it in ASP.NET

    · 2 min read

    Shows how to run ASP.NET validators client-side without hitting the submit button

  94. Debug JavaScript in Visual Studio 2005

    · 2 min read

    Explains how to enable debugging of JavaScript in Visual Studio

  95. Measure the success of your website

    · 3 min read

    Define conversion points in order to measure the success of your website

  96. BlogEngine.NET update

    · 2 min read

    A lot of new features have been implemented so far and some are still to come.

  97. A cool new search engine for finding .NET content

    · 1 min read

    Try out the new .NET search engine for better search results.

  98. Microsoft stole my idea

    · 1 min read

    Did Microsoft steal my idea of using Word as an editor for writing blog posts?

  99. The API of a blog

    · 1 min read

    Al Nyveldt just implemented the MetaWeblog API into BlogEngine.NET and wonders what people will use it for

  100. Simplicity or not at all

    · 3 min read

    Simplicity can be applied to all sorts of problems no matter how complex they are.

  101. New bits finally available

    · 1 min read

    CodePlex is finally up and running again, so daily builds can continue.

  102. Status on BlogEngine.NET

    · 3 min read

    Covers the status of the BlogEngine.NET project and describes what features have been added.

  103. The use of audio on a website

    · 2 min read

    The use of audio files can create a more loyal visitor base and help support your website's message.

  104. New AJAX features

    · 1 min read

    BlogEngine.NET just got new cool AJAX features using ASP.NET's client-callbacks feature.

  105. Have .NET developers finally grown up?

    · 3 min read

    The .NET community finally stepped up and ended the ongoing stupid debates.

  106. New sitemap features in robots.txt

    · 1 min read

    Describes how to enable your sitemap for autodiscovery by all search engines

  107. New provider model for BlogEngine

    · 2 min read

    Getting you started building a custom data provider for BlogEngine.NET

  108. Send the right error codes in ASP.NET

    · 1 min read

    The mothod removes the yellow screen of death and let’s the browser decide what to display to the visitor.

  109. BlogEngine.NET on CodePlex

    · 1 min read

    Today I finally released the entire source code on CodePlex. From there you can submit bugs and download the latest builds.

  110. Events in the file and image handlers

    · 2 min read

    Explanation of the events fired when an image or file is served to the client in BlogEngine.NET

  111. New interim release

    · 1 min read

    BlogEngine.NET 1.01 has been released. The releases fixes a series of bugs and adds new features.

  112. The launch of BlogEngine.NET

    · 1 min read

    After a lot of hard work I am very please to present the BlogEngine.NET for anyone to download and use. The blog engine is for anyone, but designed specifically to .NET developers that like to push software further than...

  113. Getting started with BlogEngine.NET

    · 2 min read

    Getting started using BlogEngine.NET - the new ASP.NET 2.0 blog engine for developers.

  114. Identify external links in JavaScript

    · 1 min read

    Add a class to all external or off-site links using JavaScript

  115. The new blog engine - sneak peak

    · 1 min read

    Forteen days have passed since I started working on the new blog engine and on this day the first working example is online. Check out the first post on the new blog. It still needs a good name so in the mean while, I'll...

  116. The first post on the new blog

    · 2 min read

    Marks the birth of a new ASP.NET blog engine for developers

  117. Adding search capabilities to the new blog engine

    · 2 min read

    The in-site search feature has been under development for a few days by Claus Christensen . Claus has been developing his own search engine for the last couple of years, so he knows a lot about search algorithms and...

  118. More info on the new blog engine

    · 1 min read

    The new blog engine is well on its way and almost ready for its beta test. We’ve added extra features that weren’t on our original feature list . The features include: Pingback and trackback support - Almost done Pings...

  119. Implement Gravatar icons in ASP.NET

    · 1 min read

    Gravatar icons can be used on all websites that lets users write comments. It could be in a forum or on a blog. The image is retrieved from the Gravatar website and is based on the e-mail address of the person that makes...

  120. New blog engine in town

    · 2 min read

    For more than a year, I've been blogging on the excellent dasBlog engine and it has been good. I really like the fact that it runs on XML instead of a database. However, it is written in ASP.NET 1.1 and is quite...

  121. A shorter and URL friendly GUID

    · 1 min read

    As a follow-up on my post from yesterday about generating shorter GUIDs , I’ve created a small helper class in C#. The class encodes a GUID into a 22 character long string and decodes the string back to the original GUID...

  122. Generate unique strings and numbers in C#

    · 2 min read

    The System.Guid is used whenever we need to generate a unique key, but it is very long. That’s in many cases not an issue, but in a web scenario where it is part of the URL we need to use its string representation which...

  123. Psychological variables and properties

    · 2 min read

    I’ve noticed that there are two different ways developers locate private variables used by properties. One way is to locate the private variable next to the property that returns them and all other private variable...

  124. Asynchronous GridView in 5 simple steps

    · 3 min read

    A web page with a data bound GridView control can take a long time to load. The page is not rendered until all the controls are, and the GridView cannot render before data has been retrieved from the database. So, let’s...

  125. Compress and decompress strings in C#

    · 1 min read

    A couple of days ago, I had to store some very big strings in an XML file. To keep the file size down I wanted to compress the strings using a GZipStream and then decompress them later when needed. I modified the methods...

  126. A dynamic blogroll for ASP.NET

    · 2 min read

    The blogroll has become a standard element on most blogs today. If it is an ASP.NET blog, the blogroll probably contains links to other ASP.NET blogs and that gives the visitor an opportunity to surf to other related...

  127. Is security harmful for innovation?

    · 3 min read

    Some of my friends have been considering moving to Vista and have therefore asked me if it’s worth the money. My answer is an unconditionally yes, but then they ask why that is and what features are worth the upgrade?...

  128. Count clicks on external links in ASP.NET

    · 2 min read

    On a small test website I’m building in my spare time, I wanted a way to count the number of clicks to the outgoing links from that site. Imaging hosting banners or other affiliate links where you get paid per click, it...

  129. Installing Vista on my work PC

    · 2 min read

    Finally I had the chance to install Vista on my work PC - something I've wanted to do since November when it became available on MSDN. Now the installation is over and it went incredibly smooth. It installed all my...

  130. Generic plug-in application in C#

    · 2 min read

    At work, we are about to build a new internal tool for administration of different systems. We developers need certain applications and the sales department needs some other ones. All the different people need to be able...

  131. Serialize files to base64 strings

    · 1 min read

    Today, I needed to store images in XML files so I had to serialize an image file into text so it could be written in the XML file. Of course, it should also be deserialized back to an image again by reading from the XML...

  132. Create reusable user controls in ASP.NET

    · 4 min read

    In almost every web project of any size, you would probably use a lot of user controls to separate the content and UI logic. Many of the user controls are used only at one place in the solution while others are used by...

  133. A simpler AJAX implementation in ASP.NET

    · 3 min read

    A week ago I wrote about the native client callback feature of ASP.NET 2.0 and why it isn’t always the smart choice. That post got me some good feedback that inspired me to build a custom callback implementation so you...

  134. The true selling point of XHTML

    · 4 min read

    Some years ago there was a lot of fuzz about the importance of the W3C XHTML standard. I’ve always been a firm believer of the standards and built every website to comply with them. But why? Very brief history The...

  135. HttpModule to block external referrers in ASP.NET

    · 2 min read

    I was ones faced with the issue of enforcing copyright on different files on a website. That meant that images and dynamically created XML files had to be blocked if accessed from outside the website. So, I had to find a...

  136. Turn on true tabbed browsing in IE7

    · 1 min read

    Finally Internet Explorer caught up with the rest of the browsers and introduced tabs. For some reason I don’t know, the tabs feature doesn’t work the way you would expect from your experience with Firefox, Opera etc...

  137. Screen scraping in C#

    · 2 min read

    Some say that screen scraping is a lost art because it is no longer an advanced discipline. That may be right, but there are different ways of doing it. Here are some different ways that all are perfectly acceptable, but...

  138. Is ASP.NET too easy?

    · 3 min read

    Some time ago, I wrote a post called “ Is ASP.NET too difficult? ” and I strongly believe that it is. Yet at the same time it cause problems by making it too easy to do relative advanced programming. It doesn’t seem to...

  139. Beware of Client Callbacks in ASP.NET

    · 2 min read

    The built-in AJAX feature of ASP.NET 2.0, also known as Client Callback, is simple to utilize but a beauty in disguise. I’m not talking about the “Atlas” toolkit for ASP.NET but the ICallbackEventHandler interface that...

  140. Simple RSS reader class in C#

    · 2 min read

    Update February 11th . The class now updates every feed in the cache asynchronously and automatically. On the login screen of Headlight , we are soon adding news updates so that our customers can see what is going on...

  141. When to assembly

    · 3 min read

    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...

  142. Follow-up

    · 1 min read

    Yesterday, I received a lot of mails and comments on how to improve this blog. Thank you. Most of the comments and mails I received asked me to make it easier to navigate to the different code samples on this site. To...

  143. Download tools and C# source code

    · 2 min read

    Here is a list of the different tools I've developed and posted to this website. Source code in C# is included for all tools. The links points to the blog post, so you can get explanations and examples on how to use...

  144. One year anniversary

    · 2 min read

    Exactly one year ago this website saw the light of day and in that time the archive has grown to 201 posts about C#, ASP.NET and a little bit of other related stuff. This will continue in the year to come. Because I’m in...

  145. Remove the www subdomain from your website

    · 2 min read

    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. If you make...

  146. Search Engine Positioner

    · 1 min read

    After I wrote about how to check a website's position at the Google search result page, I thought it would be fun to write a little application that uses that method, but extend it to work with Yahoo and AltaVista as...

  147. A state aware generic collection in C#

    · 2 min read

    One of the biggest problems with the different types of collections in the .NET Framework, is that they don’t tell you if the collection as been changed or not. If you have a Collection<int> that has to be persisted to a...

  148. Get your Google search position in C#

    · 2 min read

    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. You can also use C# to...

  149. Stock quote class in C#

    · 2 min read

    A couple of months ago one of my readers asked me to build a stock quote class that would automatically update the quote. I forgot about it, but then I found the e-mail and decided to give it a go. I started looking for...

  150. Universal data type checker

    · 2 min read

    In many different scenarios we need to check if a string can be converted into an integer e.g. This could be when we work with query strings and need to check if they match a certain data type. In VB.NET you can use the...

  151. Working with query strings

    · 1 min read

    In many cases we write our ASP.NET logic around query strings in order to show the right product page or what not. The first thing we do is to check if the query string exists in the first place before we start using it...

  152. Access client information server-side

    · 3 min read

    Today, I was playing around with HTTP request headers and for some reason started thinking about how limited information they provide about the requesting browser. All they really provide is the user agent string which...

  153. The death of the ArrayList

    · 1 min read

    In the good old .NET 1.x days where Generics wasn’t born yet, the ArrayList was the class to use for just about any type of collection. It was much easier to use compared to an array of objects and it did the job very...

  154. HttpModule for query string encryption

    · 2 min read

    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. Consider the URL example.com/?user=123&account=456 and then imaging what a...

  155. Do postbacks with parameters in JavaScript

    · 2 min read

    Whenever you use a Button or LinkButton it is because you want to be able to do a postback when it is clicked. The same could be the case for CheckBox or DropDownList etc. but then you need to set the AutoPostback...

  156. Keep the content-type in sync

    · 1 min read

    Most websites include a meta-tag that tells the browser what content-type the document is. It looks like this: < meta http-equiv ="Content-Type" content ="text/html; charset=iso-8859-1" />> All ASP.NET web applications...

  157. The what, why and how of XML code comments

    · 3 min read

    During the years I’ve seen a lot of different ways of commenting code – some good and some bad. My personal favourite way of commenting code is by using the XML comment feature of C# and VB.NET, but the important part of...

  158. The example domain

    · 1 min read

    I always use google.com in my code samples as a way to show an example domain or URL. That’s because I wasn’t aware that there is a dedicated domain for use in samples which is'n available for registration. Check out...

  159. Choose a standard number format

    · 2 min read

    Today, I ran into an issue regarding the way numbers are parsed in different cultures, which resulted in very wrong numbers. The problem begins when your web application is set to automatically resolve the culture...

  160. Get the query string right

    · 2 min read

    Today, I ran into a strange little issue regarding the System.Uri class that took me too long to figure out. The Uri class has a property called Query that, according to the documentation, returns everything from the "?"...

  161. The class you didn’t know existed

    · 1 min read

    …Or at least a class I didn’t know existed, but let’s see if I’m right or not. The class resides in the System.Web.UI namespace and is used various places in ASP.NET. Among those places are the inner workings of the...

  162. Block DoS attacks easily in ASP.NET

    · 2 min read

    Denial of Service (DoS) attacks are becoming a more and more common way to bring websites and servers down. They are very easy to do and pretty hard to protect against, which is why they are so popular. The only thing...

  163. Use the thread pool in ASP.NET

    · 1 min read

    The thread pool gives you an easy and safe way for creating multithreaded applications, and even though the stateless nature of the Internet isn’t the best place for multithreading, it can still be the right thing to do...

  164. TraceWorks is hiring

    · 1 min read

    This is great news for all .NET developers who want a job in Copenhagen, Denmark. We need to find a Senior C# Back-end Developer and a ASP.NET Front-end Developer. Both positions are highly technical and very interesting...

  165. Block IP addresses from your website

    · 1 min read

    Recently, one of my readers asked me how to block certain IP addresses from accessing his ASP.NET website. It was a good question that could be answered in multiple correct ways. My answer was a plug ‘n play HttpModule...

  166. Catch the right closing event

    · 1 min read

    Whenever a Windows Form is closed, you can catch this event by overriding the OnClosing() method. In this method you have the option to do some cleanup before it closes. You can also prevent the Form from closing by...

  167. Website monitoring tool

    · 2 min read

    For quite a while now, I have needed a simple website monitoring tool that would check the uptime of my websites. There are a lot of different ones on the Internet, some are free and some are very expensive. All the ones...

  168. Parse controls dynamically in ASP.NET

    · 2 min read

    Most of the primitive types in the CLR have a Parse method that takes a string and parses it into its own data type. I could be DateTime.Parse(string) or Int.Parse(string) etc. It’s a great way of doing late binding and...

  169. The Create GUID menu item is back

    · 2 min read

    The Visual Studio 2005 launch improved so many things from older versions – some big and some small. Yet somehow it is always the small things you remember. The 2005 release is superior in almost any aspect except one –...

  170. Use JavaScript to cancel Adobe Flash requests

    · 2 min read

    Internet Explorer can only make 2 connections at a time, which means that only two elements can be loaded while the rest is queued up. Imaging a web page with 10 Flash movies, then only two of the movies can be loaded at...