Monday, September 14, 2009
Old Skool - Classic ASP ServerVariables List
This is an oldie but a goodie – I don’t know how many times in my career I’ve rewritten these few lines of code but I’ve preserved it here to save me writing it yet again! A simple method for outputting all the server variables, query string parameters and form variables in Classic ASP!
response.Write("<hr/>SERVER VARIABLES COLLECTION<br/>")
Dim variableName
for...
Tuesday, September 01, 2009
Useful code to properly record and redirect an unhandled exception from Global.asax Application_Error Handler
void Application_Error(object sender, EventArgs e) { // Code that runs when an unhandled error occurs string httpCode = ((HttpException) Server.GetLastError()).GetHttpCode().ToString(); if (HttpContext.Current.Session...
Subscribe to:
Posts (Atom)