What version is my Server? Script

Mar 29, 2011 at 2:05 AM

What would I need to add to the bottom of one of the admin pages, in order to monitor what versions of ASP .net and IIS my host is running at any given time?  I would like to monitor this to know if my server has been updated, etc. I think this would be a handy thing to have on one of the admin pages.

Mar 30, 2011 at 12:25 PM
Edited Oct 24, 2011 at 9:41 PM

 

http://www.apexa.net/Blog/web_design_Blog_20080603.aspx

http://msdn.microsoft.com/en-us/library/ms524602.aspx

 

    Response.Write("<table>");
    foreach (string key in Request.ServerVariables.Keys)
    {
        Response.Write(
            string.Format("<tr><td>{0}</td><td>{1}</td></tr>",
            key, Request.ServerVariables[key])
            );
    }
    Response.Write("</table>");



 
 


Java Blog