473,796 Members | 2,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="AxCarContro lID" style="Z-INDEX: 101; LEFT: 56px; WIDTH: 616px;
POSITION: absolute; TOP: 304px; HEIGHT: 120px"
classid="clsid: 65A0EEC0-745F-11D3-B92E-0020781238D4" name="AxCarCont rolName"
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 = AxCarControlNam e.PetName
txtMaxSpeed.Tex t = CStr(AxCarContr olName.MaxSpeed )

But the system does not identify the name of the activeX, AxCarControlNam e.
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 2018
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="AxCarContro lID" style="Z-INDEX: 101; LEFT: 56px; WIDTH: 616px;
POSITION: absolute; TOP: 304px; HEIGHT: 120px"
classid="clsid: 65A0EEC0-745F-11D3-B92E-0020781238D4" name="AxCarCont rolName"
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 = AxCarControlNam e.PetName
txtMaxSpeed.Tex t = CStr(AxCarContr olName.MaxSpeed )

But the system does not identify the name of the activeX, AxCarControlNam e.
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
2179
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 using the param tag. My question now is, how do I get these parameters into my activeX control. I found hints about using IPropertyBag, but didn't find a good example on how to implement that. I even don't know whether this is the right way to...
18
8438
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
3
10837
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 which has to parameters passed to it from another Web page Parameter # 1 dbid and Parameter # 2 reportid. I know that I can access the values of the parameters from the code behind .aspx.cs using Request.QueryString so
2
46409
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 at .ascx? Thank you for your help!
0
1965
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> tags hosted in the .aspx file. The control in question is a file viewer. I need to be able to set the filename <PARAM NAME="Filename" VALUE="filename.ext"> reference under the <OBJECT></OBJECT> tags dynamically.
0
2440
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 given me an ActiveX control to do it. This is the code (well, the pertinent bits anyway) PLEASE NOTE: THE LINES MARKED WITH *** ARE NEW AS A RESULT OF THIS NEW REQUIREMENT
0
1585
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 an ActiveX control, which is contained in a CAB file. Somehow, I have managed to use the original VBScript in a respective .NET page, but there are several problems.
1
1544
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
2797
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 (not web-based or part of current application) brought to the front and focused (findwindow api) and have the button scrape the contents of the focused window so the contents can be parsed and entered into the web application. Ideally, I would...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9531
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9055
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.