473,832 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using ActiveX Controls in ASP.NET or ASP

Hi,

I have an activex control created using Sun's javabeans activex
bridge, and, as such, it must be installed in a certain directory (the
JRE home) if is to be installed locally....

What I would like to do is use this activex control in ASP or ASP.NET.
I've seen various ways to do it but I'm not sure I'm doing it
correctly. In addition, is it possible to have the control on the
server and not have it downloaded to the client? It is a currency
conversion program, with no ui, etc. It does all the work behind the
scenes, so there's no need for the user to even have access to
anything but the results.

How would I go about implementing this? Is it possible? Anything
obvious that I'm missing?

Thanks! :)
Nov 18 '05 #1
3 1132
Hi,

I don't get if it ActiveX control that should embed into you page or COM
DLL that you want to use as part of your page processing.

if its ActiveX control you should use <OBJECT> tag to embed it into
page. You can't use ActiveX on server side just use it on client side.

If it's COM DLL you can simply reference it and work against it. If your
COM object is STA don't forget to add ASPCOMPAT attribute to page
directives.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2
If I have to use the <object> tag.. how do I do so? I have tried various
examples but can't seem to get it to work. It is an activex control and
is a dll. :)

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
It looks like this an ActiveX DLL. Once registered (regsvr32) it is likely
you could use CreateObject to create an instance of this object, server
side. Create a test page such as :

Dim obj As Object
obj=CreateObjec t("ADODB.Record set") ' Use of course your own progid
Response.Write( obj.Version) ' Call some method here

Patrice

--

"Mattt" <ma****@gmail.c om> a écrit dans le message de
news:f4******** *************** **@posting.goog le.com...
Hi,

I have an activex control created using Sun's javabeans activex
bridge, and, as such, it must be installed in a certain directory (the
JRE home) if is to be installed locally....

What I would like to do is use this activex control in ASP or ASP.NET.
I've seen various ways to do it but I'm not sure I'm doing it
correctly. In addition, is it possible to have the control on the
server and not have it downloaded to the client? It is a currency
conversion program, with no ui, etc. It does all the work behind the
scenes, so there's no need for the user to even have access to
anything but the results.

How would I go about implementing this? Is it possible? Anything
obvious that I'm missing?

Thanks! :)

Nov 18 '05 #4

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

Similar topics

1
1523
by: SmartGuy | last post by:
hi,all: The whole thing is : My team is developing some activex controls in VB 6.0. As a new comer, i am quite familiar with .Net(c#) than vb 6.0. So can i develop ActiveX controls in c#? And if could, please give more information(How to do ) about these. Thanks in advanced.
0
7133
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 are running MSIE6.x, woth security settings set to display this control. For the life of me, I cannot figure out how such a simple control can be so sporadic in it;s showing on a page. It always downloads - it just doesn't always show. I'm...
1
4182
by: Norman Fritag | last post by:
Hi there I have avoided to use active x controls because I thought they are causing more problems then they are doing any good. I a new application I would want to use the tree and list view control in access 2002. Prior to that I like to fine some information or here some feed back from developers who have use active x controls success fully in there application, what their experience was.
3
22859
by: EJ1003 | last post by:
Hello I would like to create Activex Control uisng C# and use it in ASP.Net webform. User Control is not solving my requirement so I am going for Activex Control. Please guide me on this, how to do it, if any sample is provided will be of great help Thanks EJ
0
1049
by: Dan | last post by:
hI have a series of ActiveX controls written in VB6 that I want to now use in VB.NET. In the VB6 world I loaded these controls at runtime as needed. This worked great as they all implemented a common interface. I am having some issues now when I try to do the same things in VB.NET. The controls will load, however, they fail on the following line of code If TypeOf UserControl.Extender.Parent Is IControlInterface Then
7
4402
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 ActiveX controls that are to be used by a pda need to be written in the ..net compact framework, or am i missing something else here? i have a HP iPaq 2490 with Windows Mobile Premium installed While i'm at it; does a activex control allow you to...
4
6791
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 access it I have an InvalidActiveXState Exception. I cannot find mutch on the web about this Invalid State of a component except that it is invalid (what the Exception already describe). So I hope someone here knows ?
0
1340
by: Christian Nein | last post by:
Hello, does anybody have experiences with screenshots of ActiveX controls in .NET? I have a panel containing some controls, amongst others some ActiveX controls. I tried "control.DrawToBitmap()". The result was a Bitmap showing the panel with all controls located on it, except the ActiveX controls. This is not a surprise because MSDN says that "DrawToBitmap method is not supported for ActiveX controls". Does anybody know a solution for...
2
1615
by: =?Utf-8?B?bGFyc2dyZWdlcnNlbg==?= | last post by:
Hi I have created a couple of Windows Forms controls in C# either by composition or by subclassing existing controls. I'm able to use these controls as ActiveX controls by using "register for COM Interop". I then access the control in a old application written in C++ (using VS 205). This works fine! What if I wish to use a standard control, e.g. TreeView, as an ActiveX control? I can of course subclass the control, without changing the
0
10780
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10539
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9319
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...
1
7753
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5623
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
5788
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4420
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
3
3077
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.