Monday, September 14, 2009

Old Skool - Classic ASP ServerVariables List

2 comments:
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...
Read More

Tuesday, September 01, 2009

Useful code to properly record and redirect an unhandled exception from Global.asax Application_Error Handler

No comments:
    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...
Read More