Grab Server Variables
I am trying to grab the server name and IP address using Response.Write (Request.ServerVariables("ALL_HTTP"). I am using this one because I wanted to see everything that is brought back.
The server name I am getting back seems to be the host name found in IIS not the fullly qualified domain name of the server. Is there a way to get the fully qualified domain name of the server?
Also this server is one of two servers in a cluster and the IP address being returned is the IP address of the cluster server. Is there a way to get the IP address of the server that I am actually logged into?
View Replies
ADVERTISEMENT
I am wondering if it is possible to have an asp script, called script1.asp sitting on a server called server1. when this asp script runs, i want it to connect too a different server (called server2) somewhere else in the world and grab data, maybe an xml file.
Is this possible? and if so what is the process called (and/or function names etc) that can help me do this, so i can look them up in google and get cracking on the code.
View Replies
View Related
can anyone tell me difference between environment variables and server variables.
View Replies
View Related
What do you need to have on the server in order for LOGON_USER to work?Its not working on my server.Reverse DNS maybe?
View Replies
View Related
Need to know some about current user of NT domain. In my asp page i have used Request.ServerVariables("LOGON_USER") to get current NT user but some times it returns nothing and some times it gives correct user name.
In my application i am redirecting from one page to antoher and i need to keep server variable "LOGON_USER". For every page i have different kind of security. I don't know wheather i am missing some thing at IIS or this command works unusually.
View Replies
View Related
I just have a question for something I have been seeing out in the WWW.
Some websites that I goto display the city and state of where I live. The question is How are they doing that? is it a Server Variable ? If so does any one know what that Variable is?
View Replies
View Related
I try to make my page http://tudef.jezz.dk show the online users ip numbers, but i only get my own ip, even if more users are online.
I use request.server.variables and remote_addr
View Replies
View Related
I am trying to insert three variables into my table in my asp program. Can someone please tell me if my syntax us wrong. I keep getting this error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 3: Incorrect syntax near '&'.
/credFeesEdit10.asp, line 735
Here is my insert statement: Code:
View Replies
View Related
Is there any way to deny a server variable to be run on a server such as LOCAL_ADDR?
View Replies
View Related
I cannot view Server Variables Specifically HTTP_REFERER, in an ASP Page that I access either by a From POST from anothe rpage or a link.
View Replies
View Related
I'm working on a shopping cart page. In page A (checkout) the user
enters their credit card information. On postback, if everything is
correct, it sends the user to page B (confirmation). My question is,
can I (or should I) use server variables to send CC information to page
B?
My boss doesn't want me to store this information in the SQL
database we're using. Obviously cookies are out of the question and so
is passing info through request.querystring, so I was thinking on using
session variables for this, but not sure if it's safe.
What should I do?
View Replies
View Related
I bet this is a simple one, but I just don't know.
www.mydomainname.com/12345
How do I grab the 12345 in my ASP page as the ID#?
View Replies
View Related
can you grab the computer name via asp?
View Replies
View Related
I am looking to find out how to grab a specific content on a particular Website and put it on my Website. Of course, I will get permissions before doing so. Any ideas? I have found a sample ASP script that shows how to grab the entire page, but certain sections of the page.
View Replies
View Related
Is it possible to grab a client side IP Address using JavaScript in an htm page? I have a web page hosted on a non-ASP server and I want a piece of code in JavaScript to grab the IP address of the client and send it to a web page on another server. The other page will be ASP.I need this for both Netscape and IE browsers.
View Replies
View Related
I'm looking for a way to grab the HTML behind one of my pages and display it
to the user. The page I'm trying to get the HTML from is an ASP page, so
obviously I'm looking for the post-asp processing results. Basically I want
the same HTML that the user could get if they had done a "View Source" in
their browser on the page.
Does IIS/ASP provide a way to do this natively, or do I have to buy a third
party component?
View Replies
View Related
how to grab web content on another Website and put it inside mines? Such as grabbing text, or links then reformmating it on my Webpage. Any ideas on how to do it?
View Replies
View Related
At the moment I am building a small news board on my companys intranet. There are 2 different offices with 2 different domains. for each office I want to show different news relating to that office.
Is there any way with asp to get the name of the domain that the user is logged onto so I can filter different news for each domain. This will just save the hassle of putting the intranet on 2 different domains.
View Replies
View Related
I have built a site that works/worked absolutely fine on my test server. When I transferred it to a remote web host (the intended permanent home of the site) something very worrying keeps happening to my site.
I use, as is the norm, session variables to store login information. At the top of each page I do a check that Session("isLoggedIn") = "True", and if not then the system logs them back out.
The serious problem is that once you have logged into the site, the next page you try to open it fails the above check and logs you out! Obviously Session("isLoggedIn") is not equal to "True" so it assumes you aren't logged in. So basically the session variables are getting lost/cleared. This makes my site unusable, and is a disaster for it unless I can get a solution.
View Replies
View Related
Does ASP have a function to list all the server variable similar to PHP's phpinfo()?
View Replies
View Related
<%
response.write(Request.ServerVariables("REMOTE_USER"))
%>
When i use this it also gives me the domain name as well as the username. (example, amrswbouse) I know i can do js to trim off the first few letters but i want to know if there is a server variable that will save me the effort.
View Replies
View Related
isit possible to access variables (code) from ASP server script to ASP client page?? take for example the code supplied below:
'server script
<%@ Language=VBScript %>
<%
dim svalue
svalue="access me"
%>
'client code
<HTML>
<BODY>
<SCRIPT LANGUAGE="VBScript">
dim x
x = svalue 'svalue isfrom server script
response.write x
</SCRIPT>
</BODY>
</HTML>
View Replies
View Related
i need some help to grab others website content. after grab the data, i need to store into database. Any idea??
View Replies
View Related
There's only 15 rows in the table 'FiscalYr', but I can't grab the row I need.
Here's 3 typical rows:
..Year...Start..........End...... Column names = 'year', 'start', 'end'
2003 12/29/2002 12/27/2003
2004 12/28/2003 12/25/2004
2005 12/26/2004 12/24/2005
For example, if the value of 'today' is #07/10/2004", I want the record where the key is 2004. In fact, any value for 'today' between 12/28/2003 and 12/25/2004 should pull up the '2004' row.
Here's my non-functioning code:
SQL = "SELECT * FROM FiscalYr WHERE Start >= #" & today & "# AND End <= #" & today & "#"
Set rs = DBConn.Execute(SQL)
The resultSet obviously should have only one record because the Start and End dates are unique and don't overlap from row-to-row.
but when I:
if rs.recordcount >= 0 Then
response.write. "There are " & rs.recordcount & "rows that match your search."
else
response.write "While attempting to tally a RecCount there is an Error with recordset. <br />"
end if
I keep getting the Error msg. What am I doing wrong?
View Replies
View Related
Is it possible to grab recordset even after SQL throws error, but also returns data?
View Replies
View Related
I have a voting system that works perfect. It calculates the % of votes and shows the total percentage that people picked 1st, 2nd, and 3rd, and a total.
However, I want to be able to select the top 3 of those, and highlight the row, using a bgColor variable that I have defined. The problem with this is that I am calculating the %'s as I am writing the rows, and do not know how to check to see if that row is one of the top 3.
Here is my code:
View Replies
View Related
I want to be able to client process of the ASP page to get the value
populated in Request("rssFeed"), how can I do this because the Request
object is not available to the Client-side.
View Replies
View Related
I have another script where i pull all the information from the database and I want to send it to the person. What they do is they enter in their email, and if the email matches, than it will email them their login information.
How do you grab the info and than use that info and put it into an email to send?
Here is my code thus far for it: ....
View Replies
View Related
Ok i have a shopping cart got everything pretty much going but it didn't allow for quantities to be updated. So in my cart view i decided to add a quantity box so u could enter a new value and then click update to update that item.
However i don't know how to grab the value from the txt box.
I have the code working for all the db updates cause i tested it by hard coding it in. I just cant grab the value and pass it on from the txt box....
View Replies
View Related
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of these menus are then placed into the page by calling Server.Execute(rs_Modules("ModulePath")).
This works fine for up to 15 "menus" After that, the session variables that were set (not including those called by Global.ASA) are no longer set. Code:
View Replies
View Related
I need to grab product info including images from specified websites with no RSS or common structure.
I've been searching and reading articles for 2 days and have played around with grabbing html from a site and trying to find out what to do with it at that point. I think I need to parse it for the patterns I'm looking for, (creating an array out of them?) and save that information to my DB. I also want to grab the actual images and display them from my site so that the product suppliers bandwidth is not used by the pics being on my site...
I'm thinking, with my current skills which are limited, I'll be doing this with ASP (vbscript) and javascript (if necessary). I'm not great with those but good enough to figure stuff out eventually.
Can you tell me if you think I'm on the right track and recommend any learning resources specific to the skills needed to accomplish this?
If it's not too much to ask, a bit of pseudocode might keep me on the right track... what to do and when.
View Replies
View Related
I have this asp page (see code below). It grabs the values from the previous page and populates the email which gets sent to the recipient from the person bidding on his product. I need to grab the bidder's email address (he is logged in when sending this email) from the database.
I can't seem to figure out the code for grabbing a logged in visitor's information from the database to display in the "From" field. Can anyone help? I need the code that grabs his email address, and the code that goes in the "mailer.from" variable to populate that field. Here's the code:
View Replies
View Related
I've been trying to figure out how to grab Outlook information and place it on a webpage for a corporate Intranet site. I've downloaded both ASP and ASP.NET example.
I have gotten the ASP.NET example to work, but can not modify it to showmore than one day. The ASP version will not authenticate properly.
What is the best way to do this? Is there an example of how to grab information from Outlook? Is there a way to connect through SQL or export to a SQL database easily?
View Replies
View Related