Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Jun 10, 1999

Executing an ASP page from a VB App

I have an ASP file residing on a Web server. Is there any way that I can execute this file from within my VB application? This should be similar to a background execution with the VB user not knowing about it.

You can use the Internet Transfer Control or the WebBrowser control in your VB app to quietly execute the remote Web server ASP page. This assumes that the user has an active Internet Connection when your VB code is executing.

You can either use:
WebBrowser1.Navigate "your ASP Page URL here"
Inet1.Execute "your ASP page URL here"
to run the remote page. Make sure the Web browser control is invisible if you do not want the user to know it is executing.

Remember, though, that you won't be able to get any data back from the asp page without more coding.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.