FlyPaper

Things that tend to stick

   Mar 17

Staying in the Base Path.

It’s not all about baseball but base paths can be a pain.  Here’s a simple way to mange the base paths and help to keep code simple and document relative.  Especially helpful when using Server.Transfer to move people to different pages in your site.
//This goes in the <head> section of your Master Page
<base [...]

Read the rest of this entry »

   Feb 09

.ASHX uploads: The end to file size limitation

So you’ve got a great app that uses an ASP Handler to upload images via a HTTPContext Request.  It’s great, it’s fast but it’s limited by .NET’s assumption that all files on the internet should be less than 4 Mb.  Well the answer lies in the web.config.  A short entry will change the world.
Add this [...]

Read the rest of this entry »