Getting Request.ServerVariables from asp.net
August 12, 2011 at 4:28 pm Leave a comment
Here is the method of getting all server variables in asp.net from Request.ServerVariables
Response.Write(“<table border=’1′>”);
for (int i = 0; i < Request.ServerVariables.Count; i++)
{
string key = Request.ServerVariables.Keys[i];
Response.Write(
string.Format(“<tr><td style=’border:1px solid;’>{0}</td><td>{1}</td>
“);
This will list all the server variables in the page in table format…
Enjoy…
Entry filed under: ASP.Net. Tags: Getting Request.ServerVariables, how to get server variables in asp.net.
Trackback this post | Subscribe to the comments via RSS Feed