Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internet Transfer Control. Help ASAP.

Status
Not open for further replies.

Ute

Programmer
Oct 16, 2000
8
NL
Hello,

I am creating a website which has to do the following. I want to get information (text) automatically from another website on another server. That information has to come on my own website. I am building my website in ASP in combination with VBScript. And I am using HomeSite to build my website. Now I found out that I can use the Internet Transfer Control. I found this code (or something like this) to do what I want:

Set objInet=CreateObject("InetCtls.Inet")
objInet.Protocol = 4 'HTTP
objInet.AccessType = 1 'Direct connection to internet
objInet.URL = strURL 'The website I want to get the information from
strHTML=objInet.OpenURL 'grab HTML page


But when I want to run my site, I get the following message:

Runtimefout Microsoft VBScript fault '800a01ad'
ActiveX-item can not make the object: 'InetCtl.Inet'
/eigen/lokaaltest.asp, line 43


What am I doing wrong? Do I have to download something?
Or is there another way to get the information from the website? I hope that someone can help me as soon as possible.

Greetz, Ute. :cool: [sig][/sig]
 
1. First, check to see if your server/computer/whatever has the component registered.

2. If it is register, check the progid.classid names.

Tellek,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top