
|
|
Entries for 'Dan Gilleland'
Dan Gilleland posted on January 03, 2009 05:53

An interesting article about a new Labour Saving Device that will affect the IT industry. You have to read it to believe it!
Dan Gilleland posted on January 03, 2009 05:51

This was a great read from Jeff Atwood of Coding Horror. I'm going to have to take some time this coming week to actually follow up on some of the lin...
[Read the rest of this article...]
Dan Gilleland posted on January 03, 2009 05:50

Here are a list of good reads to start out 2009: Powerful CSS-Techniques for Effective Coding The Single Most Important Thing You Must D...
[Read the rest of this article...]
Posted in:
Tech,
Book Room
Dan Gilleland posted on September 05, 2008 23:32

I've run across an article - "HTTP Handlers and HTTP Modules in ASP.NET" - that provides a nice introduction and background on the topic, so I thought I would mention it here (for myself and others). The article is from 2002, but it still serves as a good introduction.
[Read the rest of this article...]
Dan Gilleland posted on August 07, 2008 23:59

Stephen Walther writes an article on creating custom route constraints for web apps. One particularly interesting constraint is to only allow a certain URL to run if it is run from the local machine (which can be great for an admin to check something that others shouldn't be able to). Here's an excerpt:
Creating a Local Constraint
You also can create a custom constraint that prevents a request from matching a URL unless the request is made from the local machine. This type of constraint can be useful for restricting access to website administrative pages.
...
The LocalConstraint simply checks whether the current request is a local request by taking advantage of the Request.IsLocal property. This property returns the value True when the host is either equal to localhost or 127.0.0.1.
He goes further by offering suggestions on how to write unit tests for these constraints, illustrating how to fake the HttpContext (look in the download code for this one).
[Read the rest of this article...]