469,275 Members | 1,744 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

How to run one ASP page from Another ASP Page

Here is an example of running a different ASP page from a current web
page, using Javascript.

function window_onunload() {
var objSrvHTTP;
var objDoc;
var URL = "http://" + window.location.host + "/ASPPageToCall.asp;
objSrvHTTP = new ActiveXObject("MSXML2.XMLHttp");
objDoc = new ActiveXObject("MSXML2.DOMDocument");
objSrvHTTP.open ("POST", URL, true);
objSrvHTTP.send ();
objDoc = objSrvHTTP.responseXML;

ASP page called (ASPPageToCall.asp)
Dim strSomeData
strSomeData = "Hello World"
Response.ContentType = "text/xml"
response.write "<ReturnValue>" & strSomeData & "</ReturnValue>"

Please feel free to suggest any improvements to the code.
From: Justin (ju****@jtp.dircon.co.uk)
Subject: run one asp page from another
Newsgroups: microsoft.public.inetserver.asp.general
Date: 2001-08-15 06:15:32 PST Does anyone know of a way to run an ASP page from another ASP page, andreturn output of the first page to a variable

Jul 19 '05 #1
0 1697

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by William Wisnieski | last post: by
2 posts views Thread by John Lau | last post: by
6 posts views Thread by Al Wilkerson | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.