Brute force protect your website
A few methods that limits the number of logon retries to 5. When the fifth bad attempt to logon is reached, you are unable to login to the user account for five minutes.
View ArticleRefactor the code before you write it
Have you ever heard the saying “If you don’t know where to look, don’t look at all”? Think about this saying and coding. If a piece of code somewhere in the system is causing an error, don’t split the...
View ArticleCompression and performance - GZip vs. Deflate
First I tested the GZipStream and then the DeflateStream. I expected a minor difference because the two compression methods are different, but the result astonished me. There's a 41% difference in...
View ArticleRemove HTML comments at runtime
Today I wanted to make a little method that strips HTML comments from an ASP.NET webpage at runtime. The practical use of the exercise is somewhat limited for most developers, but some websites have so...
View ArticleGet the HTTP status code from a URL
By using this simple method it is very easy to build your own web server checking tool.
View ArticleA simple factory using Generics
This simple factory design can be used for a variety of other purposes and it adds a great layer of abstraction to your code and makes it easier to maintain and reuse.
View ArticleLet Windows place your temp files
Whenever you need to write files to a temporary location, you can take advantage of Window’s own temporary file store location. It has write permissions by default, which often is a problem for...
View ArticleUse FxCop with ASP.NET 2.0
These are the steps to follow to make FxCop analyse your ASP.NET 2.0 project
View ArticleThe Create GUID menu item is back
Microsoft realized they were on thin ice by removing the feature, so they made a wise decision in Service Pack 1 for Visual Studio 2005.
View ArticleBlock IP addresses from your website
When an IP address is blocked it stops the response and sends a “403 Forbidden” header.
View ArticleBlock DoS attacks easily in ASP.NET
The module is a high performance and lightweight protection from Denial-of-Service attacks and very easy to implement.
View ArticleThe what, why and how of XML code comments
The XML comments of a method needs to answer three simple questions: What, why and how. To make sure that all three questions get answered as often and detailed as possible and needed, we can use a...
View ArticleDo postbacks with parameters in JavaScript
How to cause a postback with JavaScript on any element, and pass through parameters
View ArticleUniversal data type checker
Check to see if any string is compatible to another type. If it is, then it's safe for you to make the conversion, cast or boxing.
View ArticleStock quote class in C#
Get real-time stock quotes with this simple class. It updates it self every minute with the latest quotes. Easy to modify.
View ArticleThe true selling point of XHTML
Over the years I’ve heard a lot of strange selling points about XHTML, mainly from smaller web design companies. They tell you why they use XHTML and why it is a future proofing feature of their work....
View ArticleCreate reusable user controls in ASP.NET
By adhering to the principles of object oriented programming when designing user controls, you can maximize the maintainability and reusability of the controls. The key is to remember that despite...
View ArticlePsychological variables and properties
"The difference is psychological because a private variable is the same no matter how it is used"
View ArticleThe launch of BlogEngine.NET
BlogEngine.NET is a full featured blog engine targeted at .NET developers. It is light weight and very simple to modify and extend.
View ArticleHave .NET developers finally grown up?
The author discusses whether or not the .NET developers have rissen beyond endless and stupid debates of the past and if the history is repeating itself elsewhere in the general development community.
View ArticleSimplicity or not at all
Complex code is harder to understand, difficult to maintain, nearly impossible to extend and downright ugly.
View ArticleDon’t use the ThreadPool in ASP.NET
You can use the ThreadPool in exactly the same way in ASP.NET and it works just as you would expect. The problem is not in the ThreadPool itself but in what else ASP.NET uses it for at the same time.
View ArticlePrinciples of simplicity
Simplicity is about removing everything that can complicate the process of writing and maintaining software.
View ArticleCreate custom activities for IE 8
Shows you how to take advantage of the new Activity feature of IE 8 on your own website
View ArticleWake up ASP.NET developers!
A rant about the ASP.NET developers attitude towards the semantic web
View Article