469,915 Members | 2,634 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Use asp to trigger a 2nd asp???

I want to use a asp page to trigger a 2nd asp file. and return immediately.

#2 does not have any user interface, it simply manipulates some data and
writes a report to a log.

I want #2 to run in the background while I continue with other operations.

Any ideas how to do this?

TIA

Jul 19 '05 #1
4 1417
yabba wrote on 13 nov 2003 in microsoft.public.inetserver.asp.general:
I want to use a asp page to trigger a 2nd asp file. and return
immediately.


You cannot do this serverside, I think, without ending that second page.

You will have to do that with clientside code.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
From the server side, I think no way.
because you want #2 to run in the background while
you continue with other operations.

but from the clientside, before submitting, you can open a
little popup and make it call the second ASP

HTH
Roji
"yabba" <ya****************@bigfoot.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I want to use a asp page to trigger a 2nd asp file. and return immediately.
#2 does not have any user interface, it simply manipulates some data and
writes a report to a log.

I want #2 to run in the background while I continue with other operations.

Any ideas how to do this?

TIA

Jul 19 '05 #3
If you want to run it in the background only, then you should be okay with
changing it from a .asp file to a .vbs/.js file. Then you can use the
method described here to execute it in the background without having to wait
for it to complete. http://www.aspfree.com/articles/644,1/articles.aspx

Ray at work

"yabba" <ya****************@bigfoot.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I want to use a asp page to trigger a 2nd asp file. and return immediately.
#2 does not have any user interface, it simply manipulates some data and
writes a report to a log.

I want #2 to run in the background while I continue with other operations.

Any ideas how to do this?

TIA

Jul 19 '05 #4
Place the following code in an ASP file and include on all pages.

Just do this to make a call to page 2.
ProcessUrl "http://server/page2.asp?VAR1=??&VAR2=??

HTH

<SCRIPT language="vbscript" runat="server">
Public Sub ProcessUrl(strUrlAddress)
On Error Resume Next
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.open "GET",strUrlAddress, True
objXMLHTTP.send
Set objXMLHTTP = Nothing
End Sub
</SCRIPT>
-dlbjr

Discerning resolutions for the alms
Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Matik | last post: by
6 posts views Thread by Scott CM | last post: by
9 posts views Thread by Martin | last post: by
reply views Thread by JohnO | last post: by
1 post views Thread by deepdata | last post: by
7 posts views Thread by Shane | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.