By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,277 Members | 1,505 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,277 IT Pros & Developers. It's quick & easy.

Create ActiveX control using .NET

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.