Questions tagged [request.servervariables]

Questions regarding ASP ServerVariables Collection

45 questions
0
votes
1 answer

xsl server variable returns null

xsl server variable URL returns null. I tried all the other server variable and they all returns nulls. Is there anything I need to do (like in IIS or web.config) in order for xsl to show server variables? (i am working on webpart in…
0
votes
0 answers

How to get Client IP from network layer (Layer3) on Asp.Net?

When end-user opens up my webpage, how do i get the Client IP from Network layer? my integration partner is not accepting the IP taken from Server Variables as they feel REMOTE_ADDR from HTTP Request can be easily Spoofed. they want to take IP from…
Kishore
  • 29
  • 2
  • 4
0
votes
1 answer

Populationg LOGON_USER servervariable

I have a classic ASP Web application that's been running on a Windows Server 2003 server with IIS 6.0 for several years. I have to move it to a Windows Server 2008 server with IIS 7.0. I've got it working, but the ServerVariable LOGON_USER doesn’t…
0
votes
1 answer

Get Client Host name on Azure ASP App

Trying to get the local machine name for an Azure hosted ASP application. Request.ServerVariables["HOST_NAME"] returns 127.0.0.1 as does HOST_ADDRESS In fact I can't find anything in Request.Server variables that reflects the local…
Jezbers
  • 815
  • 10
  • 20
0
votes
1 answer

Getting the value of Request.ServerVariables(“LOGON_USER”)

I'm trying to get authenticated username in my ASP.NET page using Request.ServerVariables(“LOGON_USER”) variable. It gives me an empty string. There are a lot of topics about this variable. The common point is using an authentication type other than…
0
votes
1 answer

Show/Hide hyperlink in datagrid based on ServerVariable

I have the following in a datagrid using .NET 2:
oshirowanen
  • 15,297
  • 82
  • 198
  • 350
0
votes
1 answer

Custom ServerVariable IIS

i am trying to create a custom servervariable with url rewrite. Url Rewrite for IIS generates the following config entry
Bongo
  • 2,933
  • 5
  • 36
  • 67
0
votes
1 answer

How to take the value of a text box and upload to the database in classic asp

How do I grab the value of poNo text box and update it to the database. I tried grabbing the value with ' request.Form("poNo") ' , but it didnt work... please help! <% if(Request.ServerVariables("REQUEST_METHOD") =…
Sash
  • 315
  • 2
  • 6
  • 23
0
votes
1 answer

ServerVariables and POST Data

I've got a piece of tracking code which is capturing REMOTE_HOST, SERVER, REQUEST_METHOD, SCRIPT_NAME and QUERY_STRING. It grabs these from ServerVariables and sticks them in a database by user and IP. What is the best way to pick up the exact…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
0
votes
1 answer

Assign to JS variable

This may be somewhat of an obvious question - but how can I use the code I already have in the head of my HTML doc: To get the page URL and assign…
Barney
  • 1,820
  • 5
  • 29
  • 50
0
votes
2 answers

ASP.Net System.ArgumentOutOfRangeException

So I have some code running an IP check to ensure an ADMIN account cannot have access from outside my network. string strIP = Request.ServerVariables["REMOTE_ADDR"]; if ( (strIP.Substring(0, 9) != "XXX.XX.X.") && (strIP.Substring(0, 10) !=…
0
votes
4 answers

ASP.NET: UrlReferer has wrong value, interrogating in a static (webmethod) page called from jquery

Can anyone help? I am trying to interrogate the UrlReferer whcih should contain Google.com but it contains my current site. My web page is a standard HTM page and jquery calls a static method like so [WebMethod] public static void…
mark smith
  • 20,637
  • 47
  • 135
  • 187
-1
votes
1 answer

Request.ServerVariables in classic Asp

I have this requirement: I need to save the search word made by a user who has come to my site. The site is made in classic asp. I have tried with: Request.ServerVariables ("HTTP_REFERER") Request.ServerVariables ("ALL_HTTP") But I don't get the…
Max
  • 1
-1
votes
1 answer

Intranet NT logged user

I have a welcome head

welcome

But I pretend get welcome to the NT logged user this

Welcome <%response.write request.servervariables("LOGON_USER")%>

gives me the DOMAIN\USER how I can only show the user? I don't want the domain…
-1
votes
1 answer

Getting "HTTP_USER_AGENT:UserAgent" from server variables

Sometimes my application is getting UserAgent in the server variable HTTP_USER_AGENT. What does it mean and why it could not get my users browser information ?
Mohamed Farrag
  • 1,682
  • 2
  • 19
  • 41
1 2
3