C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




List Environment Variables at Server using ASP.NET


Posted Date: 06 Jun 2008    Resource Type: Code Snippets    Category: ASP.NET WebForms
Author: Kumar VeluMember Level: Diamond    
Rating: Points: 7



The following code sample retrieves server's environment variables.

The code snippet is written in ASP.NET and uses the Request object's ServerVariables property to enumerate all the environment variables. The ServerVariables property gets the required variables as a collection of strings.


<div style="font-family:Times New Roman;font-size:smaller;">
<table width="70%" align="center">
<tr bgcolor="#e6f1fb">
<td width="25%" align="center">
ServerVariable:
</td>
<td width="75%">
Value
</td>
</tr>
<% foreach(string Item in Request.ServerVariables){ %>
<tr>
<td width="25%">
<%= Item %>
</td>
<td width="75%">
<%=Request.ServerVariables[Item]%>
</td>
</tr>
<% } %>
</table>
</div>





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Server's Environment Variables  .  Obtain Environment Variables of Server  .  List Environment Variables at Server  .  List Environment Variables  .  Get Environment Variables using ASP.NET  .  Environment Variables at Server  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Adding new column to datatable
Previous Resource: Three Tier Architecture
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET WebForms


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use