Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send parameters to Activex Control from Web Page

Status
Not open for further replies.

cvilla

Programmer
Oct 6, 2003
1
VE
If write some values for default into Activex Control, compile the .ocx and run in web page, not problem, the control show and work correctly.

Now, if you want send parameter from WEB page to Activex control, the control recieve parameters but you can't see it and off course can't work with the Activex Control.

Thanks..
 
hi cvilla,

i have exactly the same problem, i searched the inernet and found in many forum's the same question, but not a singel answer to that. :-(((

Didi you find out more in the meanwhile? Could it be, taht the ActiveX Crashes if you hand over parameters and don't
handle it within your code..? How do i access those Parameters with VB? Any idea?

Greetz

Andy
 
If you have written your ActiveX control in VB, great! don't dispair. I had a huge job in trying to find out how to do this some years ago when MS Released their VB Controls Creation edition.

I got nowhere on the web either, It did prove for me a subject difficult to get my head round but I found a book, from Wrox, Visual Basic 5 ActiveX Control Creation (ISBN 1-861000-23-5 Pub 1996) to be invaluable

Essentially, the parameters to pass from your script should directly relate to the Public Properties of your ActiveX control. You will also need to get your head round the us of the PropertyBag in the control and Ambient.Usermode to determine if in run or design mode and, possible, the controls AsyncRead method

I thoroughly recommend the above book if you can get hold of a copy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top