Quantcast
Channel: dzone.com links by madskristensen
Browsing all 25 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Refactor 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 Article

Image may be NSFW.
Clik here to view.

Compression 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 Article

Image may be NSFW.
Clik here to view.

Remove 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 Article

Image may be NSFW.
Clik here to view.

Get 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 Article


Image may be NSFW.
Clik here to view.

A 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 Article

Image may be NSFW.
Clik here to view.

Let 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 Article

Image may be NSFW.
Clik here to view.

Use FxCop with ASP.NET 2.0

These are the steps to follow to make FxCop analyse your ASP.NET 2.0 project

View Article


Image may be NSFW.
Clik here to view.

The 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 Article


Image may be NSFW.
Clik here to view.

Block IP addresses from your website

When an IP address is blocked it stops the response and sends a “403 Forbidden” header.

View Article

Image may be NSFW.
Clik here to view.

Block 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 Article

Image may be NSFW.
Clik here to view.

The 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 Article

Image may be NSFW.
Clik here to view.

Do postbacks with parameters in JavaScript

How to cause a postback with JavaScript on any element, and pass through parameters

View Article


Image may be NSFW.
Clik here to view.

Universal 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 Article

Image may be NSFW.
Clik here to view.

Stock 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 Article


Image may be NSFW.
Clik here to view.

The 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 Article

Image may be NSFW.
Clik here to view.

Create 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 Article


Image may be NSFW.
Clik here to view.

Psychological variables and properties

"The difference is psychological because a private variable is the same no matter how it is used"

View Article

Image may be NSFW.
Clik here to view.

The 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 Article

Image may be NSFW.
Clik here to view.

Have .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 Article
Browsing all 25 articles
Browse latest View live




Latest Images