Esempio n. 1
0
        public static string GetServerVariablesInHtml()
        {
            HttpRequest Req = HttpContext.Current.Request;

            StringBuilder sb = new StringBuilder();

            sb.Append("<table border=1 cellpadding=0 cellspacing=0>");
            foreach (string Key in Req.ServerVariables)
            {
                sb.Append("<tr><td>" + (string)Key + "</td><td>" + CFindRep.IfNullOrEmptyThen(Req.ServerVariables.Get(Key), "&nbsp;") + "</td></tr>");
            }
            sb.Append("</table>");

            return(sb.ToString());
        }