Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server varibales

Status
Not open for further replies.

wudang26

Technical User
Joined
May 18, 2012
Messages
7
Location
US
ok Im using visual studio.net
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="True" Inherits="test.WebForm1"

im trying to get the server variable to display
str = Request.ServerVariables("HTTP_ID")

question how is this formatted/coded in the aspx page or is this done on the aspx.cs? If so how do you do it.

thanks in advance
 
I don't think I follow what you are trying to accomplish. Can you tell us that?

Do you just want to show the value of str? Is so , just do Response.Write(str) in your code behind.
 
Use Response.Write(), inline server tag, Trace.WriteLine() if your debugging, just to name a few.

Better yet, you can post this ASP.NET specific question to the ASP.NET forum. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top