Include From External Server
I'm looking for a way to include a file from another server in asp page.using #include won't work because it's not on the same server. In php, you can simply include(), and it doesn't care whether or not it's on the same server, is there a similar function in asp?
View Replies
ADVERTISEMENT
I have an application that needs to pull files from an internal server. This
is the setup. The web server is external facing, meaning exposed to the
internet. I then have a file server that sits inside our domain. I created a
COM object that can impersonate a user to retrieve files from that server.
However, I cannot get the application to pull files from the internal server.
I first tried a domain account that could reach both servers. This did not
work. I then had the network team create the same account on both machines.
This is not working either. I can impersonate the user (I am able to get the
user/users authenticated), but the script keeps coming back with and access
denied. Code:
View Replies
View Related
I've have a asp application that uses several session variables
(login). I have a HTA application (on client "local") acting as the
"window" for the application.
All works fine while using the HTA file to access my local version of
the web application but when I try to access the same web application
on the server with the same HTA file, just changing the iframe source
from the client machine to the server, session variables no longer
work. What's the deal? The server is not on our network, on DMZ. Code:
View Replies
View Related
how to send an HTMl email from an external server. I am trying to Send email using CDOSYS
this i what i have tried but cant get it to work.
View Replies
View Related
If I have multiple websites on the same server,can I use the #include directive to reference include files elsewhere on the server? I tried this -
<!--#include file="C:InetpubvhostsATRAMEMBER.COMhttpdocsheader.asp" -->
But no dice...
View Replies
View Related
Our network administrator does not want to install the IIS SMTP server on
our intranet. He wants me to use our existing SMTP server
"mail.smpi.siemens.ca". Can I do this with IIS?? Is this a setting in an
ASP if I'm not running the IIS SMTP server?
We are running on Windows 2000 SP4 with IIS5.
View Replies
View Related
I am trying this in a site
<!--#include file="http://www.othersite.com/page.asp" -->
and it keeps coming back that it can't do the same?
View Replies
View Related
I am trying to Include a file in my ASP page, but not a file that is on my server, but on another server, this executes a error message, is ther anyway to do this?The Error msg:
Active Server Pages, ASP 0126 (0x80004005)
The include file 'Http:...x.asp' was not found
View Replies
View Related
I have page which uses two server includes. The first displays a random banner advert. The second displays a form containing dropdown boxes populated from a database.
The includes work seperately but when I include them together I am getting an error. The includes share the same database but use different tables.
Does anyone have any ideas as to what could be causing the conflict between the two includes?
Here is my code for the BANNER .....
View Replies
View Related
I've got an include file inside each page throughout my site. Inside this
include file I'm running server.execute to include other pages based on a
condition (userID).
The problem has two parts-
1) The CPU usage jumps up to 100%
2) The path for these include files is different according to the file that
is calling server.execute, resulting in an invalid path
I'm not sure the best way to go about this. Basically all I'm trying to do
is run server.execute from within an include file, regardless of where the
calling page is inside my site structure.
This will be running off of an IIS 5 box and is being tested with IIS 6.
View Replies
View Related
When using a Server side include in IIS 6.0 in an .asp page to include connection information I get the following error: Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. The pages work fine on IIS 5 but give me this error even though I can test the ODBC Connection and it works fine.
View Replies
View Related
which one is better? why? if I use server.execute, I can run dynamic queries
like server.execute("A.asp?id="&request("id"))
But I cant do it if I use include method? what do you think about this ?
View Replies
View Related
Don't have any experience with ASP but am trying to cobble together a page that randomly loads one of three server side includes. My code so far is below but of course it doesn't work. Any pointers?
<%
RANDOMIZE
Response.write("<!--#include file='includes/home" & INT((3)*RND()) & ".txt' -->")
%>
View Replies
View Related
i have recently completed and tested a site in using IIS on my desktop as a server,
and everything runs fine. Upon transferring all the files up to the Real Server at work,
the ASP pages are not displayed as i get an error saying that the include files caanot be found.
The include files for my ASP pages are in a folder called 'includes' which sits in the same dir as the ASP files. This setup works fine on IIS on my desktop, but for some reason, this same setup is not working when the files are on the Server. Has anyone got any ideas as to why this might be happening?
View Replies
View Related
I have 9 asp-sites on a Win2003 server, and would like to use the same
include file, but it does not work.
The path for the servers default website (which is not where the
problem is) is c:inetpubwwwroot and the rest of the sites are at
c:inetpubwwwrootwebsitesSite1 , ..Site2 etc.
I tried using the following on the secondary sites:
<!--#include virtual="Websites/Include.asp" -->
<!--#include virtual="/Websites/Include.asp" -->
<!--#include file="../Include.asp" -->
All works fine on my development machine (Win2k) and on the server
(Win2003) when it is accessed through the LAN, but when I cut the LAN
and access the server through www (e.g. http://www.site1.dk) it does
not work.
I suspect that the internet user does not have rights to the virtual
path, but how do I solve that?
View Replies
View Related
I need to pass a static parameter to an included ASP file. I'm thinking about using this with a query string, but upon reflection I'm not sure how I can do this. For example:
---file start: FIRST.ASP ------
<%
Server.Execute("second.asp?a=1")
%>
<!--- ***** or ***** --->
<!-- #include file="second.asp?a=2" -->
-----file end: FIRST.ASP --------------
Now, if I do a Request.QueryString("a") in second.asp, is it performing a query on FIRST.ASP then? How can I retrieve the parameter?
View Replies
View Related
Can I separate the code inside of script into SSI files so that I have reusable code? Is it even possible?
<%
' code
<!--#include file="email_footer.inc" -->
' more code
%>
email_footer.inc has this content in it:
strHTML = strHTML & "Questions about this application?<P>Please contact the helpdesk:
View Replies
View Related
I am working on a App. at my work place, now wanting to set it up at home
but for some reason I keep getting this error :
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable
range, or are in conflict with one another.
I did some research on the NET but I am still unable to figure out why I
cannot connect to my db. Code:
View Replies
View Related
I've got an application that I want to redirect to another file while keeping the location of the file hidden. In other words,
WEBROOT.COM/REDIT.ASP?a=14
is going to display the contents of file
WEBROOT.COM/SECURE12954
without the user knowing they are in the /SECURE12954 subdir.
Which is better to protect that privacy the name of the /SECURE12954 subdir?
<%Server.Transfer("/SECURE12954")%>
or
<%Response.Redirect("/SECURE12954")%>
or
<!-- #include file="/SECURE12954" -->
View Replies
View Related
I have a provider to implement domain name search and another to receive variables from my site and save them on thier site.
PROBLEM
we are using MS ASP scripts on my site.
We want to be able to implement an include file to show the results of the form process from their website.
Currenlty i tried the ASP script below but it fails, complaining of the end if statement, when i remove it, it doesnt show anything. Code:
View Replies
View Related
I've been browsing this and a few other related newsgroups trying to get my head around this problem, and so far all the trails seem to go cold, without an acceptable solution being reached. I'm posting here because there seems to be a few MVP's knocking around, and if they dont know, then it's a safe bet nobody does.
I'm beginning to think that what I want to do is simply not possible - but i'll put it out there once more.
Here goes: I'm writing a content managaement system - and i'm making use of dynamic includes via the "read a text file" technique, and then substitiuting values into markers in the template. Code:
View Replies
View Related
I'm getting this erro.wht does it mean
Code:
Active Server Pages error 'ASP 0234'
Invalid include directive
E:INETPUBESVC001320HTML../assets/lib/MSDBConnection.inc, line 2
Server side include directives may not be present in script blocks.Please use the SRC= attribute of the <SCRIPT> tag.
View Replies
View Related
There seem to be two ways to include files on the server:
1. <!-- #include file="header.inc" -->
2. <script language="VBScript" runat="server" src="header.inc"></script>
What are the differences between the two, and when to use one instead of the other?
View Replies
View Related
how do i include an external xml file, i take it i cant use <link> like with stylesheets.
View Replies
View Related
I am trying to display a random background image for a webpage. I found this code to do it
<%
'Defines the number of background images you have
Const NUMBER_OF_IMAGES = 2
'Initiates the randomize function
Randomize
'Sets a variable: this will be used to hold the
'random generated value
Dim intImageNumber
'This is where we create the random number
intImageNumber = Int((NUMBER_OF_IMAGES * Rnd) + 1)
%>
Modify the body tag to accept the random number. In this case we are going
to place it within the image so as to facilitate the selection of a random
image. Code:
View Replies
View Related
Im wanting to call a sub funvtion on another page from vbs that is:
<SCRIPT LANGUAGE=vbscript RUNAT=Server>
sql="exec SomeStoredProc"
call DoConnection(sql)
Response.write(recordset.getstring)
call DBClose()
</SCRIPT>
the DoConnection sub is in another page called MyDBConnection in a folder call Common.
I know that I can use serverside includes and embed my con in the page using <%%> but I want the use runat server How can I make call to a function in an external page?
View Replies
View Related
Is there any way I can link to a EXTERNAL (on a different server) VBS script or a include file in an ASP document??
View Replies
View Related
I would like my localhost website to connect to a Access Database on the web.Is this possible and if possible how do I do it?
View Replies
View Related
Is it possible to run an external VBScript in an ASP page. ie. A VBScript that will run on it's own outside of ASP.
I have a VBScript that performs a function,there is no user I/O. I want to use this script both on it's own and from within an ASP page.
View Replies
View Related
I have 3 domains, A, B, and C.
I want to put the same JS tag on sites A and B that call an asp page on domain C.
The tag would look like this:
<script language="JavaScript1.1" src="http://secure.C.com/Demo/Intercept.asp"></script>
The ASP page on domain C would write a cookie, in theory the cookie should have permissions for read and writing from site C.
Something like this:
Response.Cookies("Name").Expires = Date() + 365
Response.Cookies(SurveyName).Domain = ".C.com"
Response.Cookies(SurveyName).Path = "/"
In firefox the result is exactly as planned, a cookie is set when a user goes to sites A or B via site C, and using this same approach, I can read the cookie from domains A and B via the JS tag calling the script on site C.
IE does not like this. Sometimes it doesn't even write the cookie, other times the cookie has to be there b/c of resulting actions taken, but when viewing the list of cookies, it's no where to be found. Additionally, I don't seem to be able to read the cookie the same way as firefox is letting me.
I know this can be done, I went to foodnetwork.com (yeah I love to cook), and saw that they were using a metric service that was calling a back end script from the vendors domain, and setting a cookie from that vendors domain, all without the user seeing anything or leaving the foodnetwork.com domain. I've looked at the resulting JS code that is returned from these vendor back end pages, and it has nothing to do with the cookie being set, it's definitely happening server side.
View Replies
View Related
how can you make a drop down box from an external file?
View Replies
View Related
i am trying to write a script to parse an external xml file, but am having
problems... the problem i think has to do with me trying to do
Response.Write(xmlDoc.transformNode(xslDoc)) before the xml is fully loaded.
The link to the xml file is valid. Code:
View Replies
View Related
I have multiple websites on my Intranet. My current search engines can search within their own environment. However, I would like to have one search page, which retreives results from all environments.
My first task is to connect, retreive and display results from a second server (through http). Then I will need to scrub the results to display in a unique template.
View Replies
View Related