Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Required to redirect a client machine to another asp page if it does not have a dll registered on it

I have developed a component and registered it on a client machine, it is working fine on the machine where it is properly registere. If a client machine without having that component registered on it, it return an error ActiveX component cant create object. What I need to do is that I want that client machine that do not have a component registered on it should not see the error message and instead i want my application to redirect it to some simple html page without showing any error to a client.

I am using VB 6.0 and IIS server in Window2000 Professional envoirment. I want to redirect a client machine to a different web page if it does not have a dll component re
gistered on it.
0 Kudos
Message 1 of 2
(3,191 Views)
You can use the onerror event of the component's object tag to do this. For example, this snippet will redirect to http://www.ni.com if the specified component does not load:











- Elton
0 Kudos
Message 2 of 2
(3,119 Views)