Kevin Pirnie' Articles
- Home / Archives for July 2012
By: Kevin On: July 5, 2012
Posted In: .Net Development Server Management Software Source Code asp.net development vb.net web development
I found myself recently needing to get rid of the Global.asax file. In building a CDN for myself, having a global.asax file forces cookies to be sent with requests, and for the static content I am serving through my CDN, this is a no-noSo what to do? I still need to do some page routing for a URL shortening service that is tied directly into this cdn (o7t.in is a shor url =))The answer was pretty much staring me in the face, I just did not realize it, for about 2 days staring at it. The answer is to use an HTTPModule that imports System.Web, and System.Web.Routing. Right inside the Init() event is where you would do all your Application_Start stuff!Just make sure to… Read More