ActiveX componant in .Net?

  • Thread starter Thread starter Patrice
  • Start date Start date
I need to develop a web component that will interface to a piece of
hardware. I would like to distribute a component that can be included
inside of customers web applications. This web component needs to have UI
elements as well as an API the customer can hit.

This seems like can ActiveX control, but does .Net have anything to replace
this?

Can I do an ActiveX control in .Net?

Thanks!
 
To accomplish this, you host a windows user control inside the webpage using
the <object> tag. Obviously the client broweser system will need the
correct version of the .net framework installed. Security can be a pain -
especially when doing io. You will probably have to setup trusted
assemblies or set the url as trusted. Here are some links to more
information. The msdn link has some info about setting the security.

http://aspnet.4guysfromrolla.com/articles/052604-1.aspx
http://msdn.microsoft.com/msdnmag/issues/02/01/userctrl/

This link shows you how to turn on ie debug logging if you are having
problems with your control.
http://support.microsoft.com/kb/313892/

Matt
 
To give the customer an API to use, I would put that into a separate class
in its own assembly. You could still share the device interface logic in a
common class that is used via the customer api or your web application via
the control.
 
Thanks guys. This sounds like a good start.

Matt Brown said:
To give the customer an API to use, I would put that into a separate class
in its own assembly. You could still share the device interface logic in
a common class that is used via the customer api or your web application
via the control.
 
Back
Top