473,406 Members | 2,816 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,406 software developers and data experts.

how to use ActiveX in Asp .net?

I want to insert an ActiveX control into asp .net web page, but it seems I
fall in trouble now.
When I insert the ocx control into toolbox and drag it to the web page, I
can't get its ID. and if I use the interop dll transformed with aximp.exe
from the ocx, I can't insert it into the tool box.
who can tell me what to do?
Thanks a lot!
Nov 18 '05 #1
4 2234
An ActiveX Control is not a .Net assembly, so you certainly can't expect
Visual Studio to treat it like one. An ActiveX Control is a component that
is downloaded by the browser and executed by the browser. It is embedded in
a web page in much the same way that an image is embedded in a web page, by
constructing an <OBJECT> tag in the HTML, which points to and configures the
ActiveX control after the browser has downloaded and installed it on the
client.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"FanTian" <su******@126.com> wrote in message
news:ui*************@tk2msftngp13.phx.gbl...
I want to insert an ActiveX control into asp .net web page, but it seems I
fall in trouble now.
When I insert the ocx control into toolbox and drag it to the web page, I
can't get its ID. and if I use the interop dll transformed with aximp.exe
from the ocx, I can't insert it into the tool box.
who can tell me what to do?
Thanks a lot!

Nov 18 '05 #2
FanTian wrote:
I want to insert an ActiveX control into asp .net web page, but it seems I
fall in trouble now.
When I insert the ocx control into toolbox and drag it to the web page, I
can't get its ID. and if I use the interop dll transformed with aximp.exe
from the ocx, I can't insert it into the tool box.
who can tell me what to do?
Thanks a lot!


Simple question to answer: Are you trying to use an activex component as
a server side object or as a client side object? aka do you want to call
the activeX object from the server side to process something or do you
want to have activex object inside your web page?

For the first, you need to create an interop dll that you get from
aximp.exe and reference it from your project (Add Reference in visual
studio should generate the interop dll for you).

For the second, you can just include the activex object as an object tag
in the html view of your page. In this case, you cannot manipulate the
object itself, just the tag, from the server side.

--
Sebastien Lambla [TheTechnologist]
The Geeky Lazy Bloggy
http://blog.thetechnologist.net
Nov 18 '05 #3
An ActiveX Control is not a .Net assembly, so you certainly can't expect
Visual Studio to treat it like one. An ActiveX Control is a component that
is downloaded by the browser and executed by the browser. It is embedded in
a web page in much the same way that an image is embedded in a web page, by
constructing an <OBJECT> tag in the HTML, which points to and configures the
ActiveX control after the browser has downloaded and installed it on the
client.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"FanTian" <su******@126.com> wrote in message
news:ui*************@tk2msftngp13.phx.gbl...
I want to insert an ActiveX control into asp .net web page, but it seems I
fall in trouble now.
When I insert the ocx control into toolbox and drag it to the web page, I
can't get its ID. and if I use the interop dll transformed with aximp.exe
from the ocx, I can't insert it into the tool box.
who can tell me what to do?
Thanks a lot!

Nov 18 '05 #4
FanTian wrote:
I want to insert an ActiveX control into asp .net web page, but it seems I
fall in trouble now.
When I insert the ocx control into toolbox and drag it to the web page, I
can't get its ID. and if I use the interop dll transformed with aximp.exe
from the ocx, I can't insert it into the tool box.
who can tell me what to do?
Thanks a lot!


Simple question to answer: Are you trying to use an activex component as
a server side object or as a client side object? aka do you want to call
the activeX object from the server side to process something or do you
want to have activex object inside your web page?

For the first, you need to create an interop dll that you get from
aximp.exe and reference it from your project (Add Reference in visual
studio should generate the interop dll for you).

For the second, you can just include the activex object as an object tag
in the html view of your page. In this case, you cannot manipulate the
object itself, just the tag, from the server side.

--
Sebastien Lambla [TheTechnologist]
The Geeky Lazy Bloggy
http://blog.thetechnologist.net
Nov 18 '05 #5

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

Similar topics

8
by: AnalogKid | last post by:
Short question: What's the difference between SingleUse and MultiUse ? Long question: I've been writing some sample code to see how different Instancing values and threading models work. I...
1
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is...
2
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run...
6
by: Pippen | last post by:
I'm getting a little confused about what is supported in MS-SQL ActiveX and what is Visual Basic and what is VBScript. Can someone please point me to a website, recommend a book or if I've missed...
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
0
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all...
18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
4
by: Wilfried Mestdagh | last post by:
Hi, I have a C# application (VS2005) with Microsoft Mappoint activeX control on a form. At a certain moment I want to create a second one temporary in code. This seems not to work, when I try to...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.