How to use ActiveX parameters in the codebehind in .NET

G

Guest

I have created an ActiveX and load it into the Component in ToolBox in the
Visual Studio IDE.

After create a web form project (VB.NET), I drag the activeX component into
the web form design, set ID and name for it in the property, and the HTML
looks like:
<OBJECT id="AxCarControlID" style="Z-INDEX: 101; LEFT: 56px; WIDTH: 616px;
POSITION: absolute; TOP: 304px; HEIGHT: 120px"
classid="clsid:65A0EEC0-745F-11D3-B92E-0020781238D4" name="AxCarControlName"
VIEWASTEXT>
<PARAM NAME="_cx" VALUE="16298">
<PARAM NAME="_cy" VALUE="3175">
<PARAM NAME="Animate" VALUE="0">
<PARAM NAME="Speed" VALUE="0">
<PARAM NAME="PetName" VALUE="">
<PARAM NAME="MaxSpeed" VALUE="0">
</OBJECT>


There is no reference automatically generated.

In the code behind, I try to type code in the Page_Load():

txtPetName.Text = AxCarControlName.PetName
txtMaxSpeed.Text = CStr(AxCarControlName.MaxSpeed)

But the system does not identify the name of the activeX, AxCarControlName.
So I can not comple the code.

I think that I did something wrong.

How to use the parameters of the activeX and activeX and interaction between
the web form and the activeX?

Thank you for any help

David
 
G

Guest

I may have to know how to implement the activeX interaction with web user
from web form

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top