473,394 Members | 1,752 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,394 software developers and data experts.

Create ActiveX control using .NET

I have many ASP pages that I cannot immediately convert to
ASP.NET. I would like to make use of .NET, particularly
C#, to develop new code that I would need to access from
those unconverted pages. The new code would not use any
control objects and would only be used in server-side ASP
JavaScript code.

Can I create a component in .NET and access it as an
ActiveX component using "new ActiveXObject()"
or "Server.CreateObject()"?

There is lots of info on the opposite -- using existing
COM objects in .NET pages, but I have yet to find a way to
create an "ActiveX wrapper" for a .NET component.
Jul 21 '05 #1
1 4091
Hi. What you need to do is "Expose .NET Framework Components to COM":

http://msdn.microsoft.com/library/de...nentstocom.asp

Basically you be careful on what types you create, add some attributes, and
register the assembly for com (regasm.exe).

-mike
MVP

"Craig Pennington" <an*******@discussions.microsoft.com> wrote in message
news:24****************************@phx.gbl...
I have many ASP pages that I cannot immediately convert to
ASP.NET. I would like to make use of .NET, particularly
C#, to develop new code that I would need to access from
those unconverted pages. The new code would not use any
control objects and would only be used in server-side ASP
JavaScript code.

Can I create a component in .NET and access it as an
ActiveX component using "new ActiveXObject()"
or "Server.CreateObject()"?

There is lots of info on the opposite -- using existing
COM objects in .NET pages, but I have yet to find a way to
create an "ActiveX wrapper" for a .NET component.

Jul 21 '05 #2

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

Similar topics

1
by: Jink Welby | last post by:
Can anyone tell me how to create at ActiveX control ar run-time in code without using a form? I want to instantiate and use the control from within a non-visual class. Please help! Thanks in...
3
by: DB | last post by:
Hi Folks, I want to create Activex component. Can we create it using c#.net or do I need to create it using vc++? Thanks in Advanced, Deepak
6
by: Vinay | last post by:
Hi all, Can we create an ActiveX (.OCX) control in ATL project type? Is project type for creation of .OCX file can only be ActiveX MFC type? If yes, Could you suggest me some Links? My...
3
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...
4
by: qualitynice | last post by:
HELP :-)... I'm creating an embedded activex object in an asp.net page using the HtmlGenericControl class. I'm doing this because when I tried to embed it directly in the aspx page, it stopped...
3
by: Michael Fitzpatrick | last post by:
How do I create an ActiveX COM control using VB.Net. I want to create a control to use in Office 2000 VBA.
4
by: Captain Chaos | last post by:
Hello Is it Possible to build an ActiveX Control with NET ? I want to take a NET UserControl and use it with VB6. I found a solution how to embbed a NET UserControl into a WebPage (Like it...
2
by: Wael_Bakr | last post by:
I have a dll written in visual basic.net, I need to run this dll on client's machine, so if i need to wrap it as an activex control to be downloaded on client's machine how can i do this using...
3
by: Erakis | last post by:
Hi, I have to make an ActiveX (Running on Internet Explorer) that play/record sound from soundcard. Also, I have to create a Socket to send/receive sound data to my server. I use this...
2
by: estufa | last post by:
Hi I see some questions about creating ActiveX controls using .NET. I found the answer in this page and it works really good for me....
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
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
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,...
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...

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.