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: , .

How to connect sqlserver from command prompt using sqlcmd / bulk insert

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent Posts

Feeds


Follow

Get every new post delivered to your Inbox.