I need to obtain the name of my aspx script from within the
script. I am developing a web counter, and I need to log
the visitors into a file which has the same basename as the
script?
Thanks.
One option is Request.ServerVariables["SCRIPT_NAME"];
Ray at work
<johanwrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
>I need to obtain the name of my aspx script from within the
script. I am developing a web counter, and I need to log
the visitors into a file which has the same basename as the
script?
Thanks.
I know about those
sw.WriteLine(Request.ServerVariables("REMOTE_ADDR" ))
sw.WriteLine(Request.ServerVariables("HTTP_REFERER "))
sw.WriteLine(Request.ServerVariables("HTTP_X_FORWA RDED_FOR"))
sw.WriteLine(Request.ServerVariables("REMOTE_HOST" ))
but all I get is ip address in the "number" format
See System.Net.Dns to resolve the address (it can be done at the IIS level
but with some additional cost for *each* request).
As the example looks like a web site if you want the name of the site your
code is running this is Request.ServerVariables("SERVER_NAME") (likely
exposed in a friendly way by ASP.NET by a property such as
Request.Server.Name or something similar)
I know about those
sw.WriteLine(Request.ServerVariables("REMOTE_ADDR" ))
sw.WriteLine(Request.ServerVariables("HTTP_REFERER "))
sw.WriteLine(Request.ServerVariables("HTTP_X_FORWA RDED_FOR"))
sw.WriteLine(Request.ServerVariables("REMOTE_HOST" ))
but all I get is ip address in the "number" format
Hi there
I'm hoping that someone can help me with a question I have about
javascript syntax.
I got an html page that uploads an image and some text field to a
database.
What I'd like to do...
We just discovered another IE bug.
When an html form contains an element with a name of `name` IE's
internal index screws up the .name property of the containing form to
point to the bad element...
Hi,
Can I create an array of tags by assigning same name to these tags?
For example, I have two <p> tags with the same name t1. But
document.all.b.value=document.all.t.length
does not...
I know the subject might be confusing. I am no beginner with
javascript but I haven't been able to figure out how to get the
javascript file name from code inside the file. So you have an HTML...
I'm having trouble with Instant Payment Notification on PayPal. One of
the forms that they generate, which invokes one of my scripts, has a
submit button with a blank name. The HTML fragment is...
Hi all,
I have been searching for a week and am unable to find and example to
"Populate picklist from directory and return file name".
I have a php script that reads a log file and plots a...
Hi all,
I know I'm doign something really daft, but I can't get this to
work...
I have a form with a bunch of inputs called ship_owner - why the
? Because I'm submitting this page though php...
Hi,
I am new to javascript and i am facing a problem in coding.
plz help me out.
I am using javascript for dynamically creating a table row which contains text boxes and radio...
hello,
I don't know how to use cookies
please help me in this
I am using the dream weaver cs4
I designed the navigation bar to my page using dream weaver cs4
navigation bar contains...
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...