473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to use ActiveX parameters in the codebehind in .NET

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
Feb 14 '06 #1
1 2004
I may have to know how to implement the activeX interaction with web user
from web form

David
"david" wrote:
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

Feb 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kai I. H. | last post by:
Hi, I have an activeX control (programmed with c++) which is displayed in the Internet Explorer via the object tag. Now, as you probably know, you can pass parameters to the activeX control by...
18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
3
by: Joe Bloggs | last post by:
Does anyone know if its possible to pass parameters or the values of Request.QueryString from a web page to a custom control class? I'm using a C# Web Application. For Example I have Web Page1...
2
by: Akira | last post by:
Hello. I'm having problem with passing parameters from .aspx file to user control. Could anyone tell me how to pass parameters from .aspx file to user control(.ascx) and how to recieve parameters...
0
by: bcox | last post by:
I would like to be able to set parameter values for an ActiveX control hosted on an ASP.NET .aspx page from a C# code behind file. The ActiveX registration code is contained in <OBJECT></OBJECT>...
0
by: Edward | last post by:
I am completely in the dark about ActiveX, but I up until yesterday I used to have a working app with ASP.NET. Now the client wants to fire up a Word document from inside the browser and have...
0
by: Frank | last post by:
Any suggestions on how I should handle this? I was asked to convert a small web application that was written in classic ASP into ASP.NET. The original site uses some VBScript to interface with...
1
by: jb | last post by:
Hi, I've a ACTIVEX component in an ASPX(aspnet 2.0) page, and I need to pass parameters dinamically, someone know how to do this? Thanks Jesus
3
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.