Click to See Complete Forum and Search --> : ASP and activeX


Kain
April 23rd, 2001, 02:03 PM
i have a menu in activeX which gather information, and i d like to launch a asp page from the activex with the information as parameters...how can i do that?

Jean-Guy2000
April 23rd, 2001, 02:24 PM
Dim lSuccess as long
dim lurl as string

lurl = "http://www.yoursite.com/info.asp?param=userdata"

lSuccess = ShellExecute(Me.hwnd, "Open", Lurl, 0&, 0&, 1)

This code will have to be in a form (because of the me.hwnd) it will open the default browser and open the asp page.

You can also do it without opening a broswer window if you want to open a tcp socket up and pass the URL using raw socket operation. I have done both of these using VB

Jean-Guy

Kain
April 24th, 2001, 12:29 PM
yeah but u can t put a form on a user control i think, when i tried the activex shits saying that i can t have any form in a user control...