Using HttpModules to perform a SSL switch on web pages

A common requirement of any secure website is to make sure that when a user traverses to a "sensitive" part of the website such the login page, the password reset page or even the personal profile page which might contain contact detail you would want the user to be forced onto a HTTPS secured page….

4

EntLib 3.1 DAAB: Be careful with the ExecuteReader

The EntLib 3.1 is simply superb, right?! Well, I would give a typical consultant answer… “It depends!”. It depends on the developers who are using it and it depends on motivation of the developers to know the component before “copy-pasting” code and method calls. Case in point is the exceptionally well written Data Access Application…

1

HttpHandler to Authorize File Downloads – C# Code Sample

Its quite a common scenario to have a feature in a web site to check for the credentials of the user before allowing a particular download. For example, there might be some documents which should be visible only to a set of users and not to any others. This document might be anything – a…


.NET 2.0 Symmetric Encryption Code Sample

One of the most common problems when developing any web site if the need to use Symmetric Encryption to save some data in the Cookie so that it can be looped back to the user’s session / identity. .NET provides a very robust mechanism in which this can be achieved and supports the most well-known…


Multi-Threaded Web Service Calls – A C# Code Sample

Sometimes it becomes necessary to call an external web service in a multi threaded manner to speed up processing of records that we have in a buffer so that the overall time spent in waiting for the calls to return is reduced. The high-level steps to perform are: Though we can have a long philosophical…