Archive For December 2009

ASP.NET MVC - Prevent Image Leeching with a Custom RouteHandler

calendar_today 25 December 2009 22:31

ASP.NET MVC

Have you ever noticed an unusually high number of requests in your web server log files for image files? It may well be that someone is linking to your images from their own site, and basically stealing your bandwidth. Here's how to implement a custom RouteHandler within an ASP.NET MVC application to prevent people leeching your images.

ASP.NET MVC Uploading and Downloading Files

calendar_today 21 December 2009 22:29

ASP.NET MVC

If you come to ASP.NET MVC from a purely ASP.NET Web Forms background, one of the first things you are likely to notice is that all those nice easy Server Controls have disappeared. One of those is the FileUpload, and its absence seems to cause a few problems. This article looks at how to upload files to the server in an MVC world, and how to get them back from the server to the user again.

Please Help - URGENT!!!

calendar_today 12 December 2009 10:31

General

Some one posted a comment to one of my articles the other day.  It appears that they had had little success in adapting some code I had posted in the article to their application. They included this phrase in their comment: "Please advice me, it is  urgent".

Storing Files and Images in Access with ASP.NET

calendar_today 06 December 2009 19:46

MS Access ASP.NET 3.5 ASP.NET Web Forms

Should you store files and images in the database or the filesystem in an ASP.NET application?  With SQL Server this is a dilemma, with both approaches having their pros and cons.  When it comes to Access, the decision is much easier to make.  Because an Access database is restricted to 2Gb, it makes more sense to store files in the file system.  However, sometimes, you may not have the choice. If you have to use the database, here's how.