CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: ASP and activeX

  1. #1
    Join Date
    Apr 2001
    Location
    USA
    Posts
    161

    ASP and activeX

    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?




    ---------------------------------------------
    Sure i got it... what s a form again?

  2. #2
    Join Date
    Sep 2000
    Location
    Ottawa, Ontario
    Posts
    356

    Re: ASP and activeX

    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


  3. #3
    Join Date
    Apr 2001
    Location
    USA
    Posts
    161

    Re: ASP and activeX

    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...

    ---------------------------------------------
    Sure i got it... what s a form again?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured