Results 1 to 4 of 4

Thread: Trying to redirect webpage from ActiveX control

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    2

    Trying to redirect webpage from ActiveX control

    First, let me explain what i'm trying to do. I want to be able to read a registry key(s) and based on the key(s) i want to launch a query. I already have the query pages done, so i would like to be able to pass the key(s) in a querystring (ex page.asp?key1=blah).

    So far i've been able to retrieve a registry and display it within the activex component, but i can't figure out how to redirect to my query page.
    Can someone tell me if this is possible? and if it is can you post some samples.

    thanks.

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Are you using the WebBrowser Control, or is this ASP, or what?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    2
    i'm using a control.
    here is the bit of code i have
    Private Sub UserControl_Initialize()
    Label1.Caption = ReadRegistry(HKEY_LOCAL_MACHINE, "Software\someFolder\", "someKey")
    Hyperlink.NavigateTo "http://localhost/activex/test.asp?someKey=" & Label1.Caption
    End Sub

    I just want get a registry key and pass the value to another page.

  4. #4
    New Member
    Join Date
    Dec 2002
    Location
    Bucharest, Romania
    Posts
    8

    Thumbs up

    Originally posted by jpdm
    i'm using a control.
    here is the bit of code i have
    Private Sub UserControl_Initialize()
    Label1.Caption = ReadRegistry(HKEY_LOCAL_MACHINE, "Software\someFolder\", "someKey")
    Hyperlink.NavigateTo "http://localhost/activex/test.asp?someKey=" & Label1.Caption
    End Sub

    I just want get a registry key and pass the value to another page.
    Hallo!
    I use succesfully Microsoft Internet Transfer Control 6.0 (load it from the Components Window: CTRL+T) MSINET.OCX

    Use this code:
    Code:
        inet1.RequestTimeout = 5000 
        inet1.OpenURL ("http://myserver.com/test.asp?someKey=" & Label1.Caption)
    Maximus live 4ever
    ====================
    Try http://msdn.microsoft.com before ask for help.

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