Search the FAQ:



Question: Is there a resource that maps the properties from the ServerVariables collection to properties in a
Answer: Some, although not all, of the Server Variables are collected
by System.Web.HttpRequest as individual properties.

So, Request.ServerVariables("URL") is provided by System.Web.HttpRequest.Url
and Request.ServerVariables("APPLICATION_PHYSICAL_PATH") is
provided by Request.PhysicalApplicationPath.

Interestingly, the whole ServerVariables Collection is also provided
by System.Web.HttpRequest as a separate NameValueCollection,
so all the Request.ServerVariables are available, although at the
performance cost mentioned.

The HttpRequest class adds a few properties not found in Request.ServerVariables, too.
Link to more information:http://beta.asp.net/QUICKSTART/util/classbrowser.aspx?assembly=System.Web,%20Version=2.0.0.0,%20Culture=neutral,%20PublicKeyToken=b03f5f7f11d50a3a&namespace=System.Web&class=HttpRequest

Frequently Asked QuestionsVersion
Do I have to use a single programming language for all the Web pages in my app?2.0
Which page code model is better, single-file or code-behind?All
What were the major changes from to Beta 2 to the Release version ?Beta 2 --> Release
What were the major changes from Beta 1 to Beta 2 ?Beta 1 --> Beta 2
I'm having some problems converting my app from 1.1 to 2.0. What can I do ?1.1/2.0
How can I find out where the temp directory is located ?All
How can I find out the USERPROFILE environment variable with ASP.NET?All
How can I find out which account ASP.NET is running as ?All
How can I find out my memory working set with ASP.NET?All
How can I find out my System Directory with ASP.NET?All
How can I find out my computer's machine name with ASP.NET?All
How can I find out the OS Version my computer is running with ASP.NET?All
How can I find out what version of ASP.NET is running on my computer?All
Can Session state be shared between Classic ASP applications and ASP.NET applications?All
Is there an online C# to VB.NET code converter?All
What is the build number for the .Net Framework 2.0 release ?2.0
Where can I find the Microsoft ASP.Net 2.0 Quickstart tutorial?2.0
How can I best organize my ASP.NET Application ?Beta 2+
Is there a resource that maps the properties from the ServerVariables collection to properties in a All
Can I run ASP.NET on Apache?1.x
12345

Click here to submit a frequently asked question via email



 
 
Copyright 1996-2005 ORCS Web, Inc.
For comments and questions please contact our webmaster
Microsoft is a registered trademark of Microsoft Corporation in the United States and other countries.