|
-
Jul 23rd, 2004, 01:44 PM
#1
Thread Starter
New Member
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.
-
Jul 24th, 2004, 11:39 AM
#2
Are you using the WebBrowser Control, or is this ASP, or what?
-
Jul 24th, 2004, 03:22 PM
#3
Thread Starter
New Member
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.
-
Aug 13th, 2004, 03:44 AM
#4
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|