Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Internet Transfer Control. Help ASAP.

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,75
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Internet Transfer Control. Help ASAP.
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Internet Transfer Control. Help ASAP. - 6/1/2001 11:13:36 AM   
  hennykoe

 

Posts: 9
Score: 0
Joined: 5/23/2001
From:
Status: offline
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.
 
 
Post #: 1
 
 Re: Internet Transfer Control. Help ASAP. - 6/1/2001 11:16:50 AM   
  ekiko

 

Posts: 14
Score: 0
Joined: 5/23/2001
From: New Zealand
Status: offline
If you are running this on the server, you will have to register this control on there. This means copying it to your server and running RegSvr32.EXE against it.

(in reply to hennykoe)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Internet Transfer Control. Help ASAP. Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts