HighTechTalks DotNet Forums  

Can ActiveX controls be built with C#

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Can ActiveX controls be built with C# in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Leslie
 
Posts: n/a

Default Can ActiveX controls be built with C# - 03-10-2006 , 01:25 PM






I would like to build a control that can be deployed from a web site that
runs in IE. The component will have no user interface. It needs to collect
information from the local workstation and either drop the information in a
cookie which will be returned to the server or call the server directly.
Can this be done? Does anyone know of tutorials or examples that illustrate
using C# to build a control that will execute from within IE and be callable
through jscript or vbscript?

Thanks,

Leslie

Reply With Quote
  #2  
Old   
Steve C. Orr [MVP, MCSD]
 
Posts: n/a

Default Re: Can ActiveX controls be built with C# - 03-10-2006 , 02:03 PM






ActiveX controls are really a COM thing. They can be built in .NET but it
doesn't feel entirely natural.
The more natural alternative is to host windows forms controls within a web
page, as described here:
http://SteveOrr.net/articles/WinformControls.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Leslie" <mason (AT) newsgroup (DOT) nospam> wrote

Quote:
I would like to build a control that can be deployed from a web site that
runs in IE. The component will have no user interface. It needs to collect
information from the local workstation and either drop the information in
a
cookie which will be returned to the server or call the server directly.
Can this be done? Does anyone know of tutorials or examples that
illustrate
using C# to build a control that will execute from within IE and be
callable
through jscript or vbscript?

Thanks,

Leslie



Reply With Quote
  #3  
Old   
Leslie
 
Posts: n/a

Default Re: Can ActiveX controls be built with C# - 03-10-2006 , 04:48 PM



Steve,

Thanks, that is just what I was looking for. One other question, you
mentioned several functions that are prohibited. Is the prohibition absolute
or can exceptions be made using the Framework Wizard. Specifically, can calls
to unmanaged code be allowed uisng the Framework Wizard? Is any of the
security affected by digital signatures?

Thanks,

Leslie

"Steve C. Orr [MVP, MCSD]" wrote:

Quote:
ActiveX controls are really a COM thing. They can be built in .NET but it
doesn't feel entirely natural.
The more natural alternative is to host windows forms controls within a web
page, as described here:
http://SteveOrr.net/articles/WinformControls.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Leslie" <mason (AT) newsgroup (DOT) nospam> wrote in message
news:4C504AB0-328D-48F6-AF04-41D2AAE03542 (AT) microsoft (DOT) com...
I would like to build a control that can be deployed from a web site that
runs in IE. The component will have no user interface. It needs to collect
information from the local workstation and either drop the information in
a
cookie which will be returned to the server or call the server directly.
Can this be done? Does anyone know of tutorials or examples that
illustrate
using C# to build a control that will execute from within IE and be
callable
through jscript or vbscript?

Thanks,

Leslie




Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: Can ActiveX controls be built with C# - 03-13-2006 , 03:02 AM



Hi Leslie,

Thanks for posting!

"Is the prohibition absolute or can exceptions be made using the Framework
Wizard. Specifically, can calls to unmanaged code be allowed uisng the
Framework Wizard?"

The prohibition is based on the setting of the CAS in the target machine.
If the code is full trusted in the target machine, the code which even
contains interop operation will be executed.

"Is any of the security affected by digital signatures?"
Yes, you are correct. The signature actually tells the target machine the
code is trusted and safe. If the target machine trusts the publisher
company, the code also will be executed.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support


Reply With Quote
  #5  
Old   
Leslie
 
Posts: n/a

Default Re: Can ActiveX controls be built with C# - 03-13-2006 , 02:54 PM



Steve,

Will the techniques described in your article work with .NET 1.1 or is 2.0
required?

Thanks,

Leslie

"Steve C. Orr [MVP, MCSD]" wrote:

Quote:
ActiveX controls are really a COM thing. They can be built in .NET but it
doesn't feel entirely natural.
The more natural alternative is to host windows forms controls within a web
page, as described here:
http://SteveOrr.net/articles/WinformControls.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Leslie" <mason (AT) newsgroup (DOT) nospam> wrote in message
news:4C504AB0-328D-48F6-AF04-41D2AAE03542 (AT) microsoft (DOT) com...
I would like to build a control that can be deployed from a web site that
runs in IE. The component will have no user interface. It needs to collect
information from the local workstation and either drop the information in
a
cookie which will be returned to the server or call the server directly.
Can this be done? Does anyone know of tutorials or examples that
illustrate
using C# to build a control that will execute from within IE and be
callable
through jscript or vbscript?

Thanks,

Leslie




Reply With Quote
  #6  
Old   
Steve C. Orr [MVP, MCSD]
 
Posts: n/a

Default Re: Can ActiveX controls be built with C# - 03-13-2006 , 06:29 PM



They will work with .NET 1.1.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Leslie" <mason (AT) newsgroup (DOT) nospam> wrote

Quote:
Steve,

Will the techniques described in your article work with .NET 1.1 or is 2.0
required?

Thanks,

Leslie

"Steve C. Orr [MVP, MCSD]" wrote:

ActiveX controls are really a COM thing. They can be built in .NET but
it
doesn't feel entirely natural.
The more natural alternative is to host windows forms controls within a
web
page, as described here:
http://SteveOrr.net/articles/WinformControls.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Leslie" <mason (AT) newsgroup (DOT) nospam> wrote in message
news:4C504AB0-328D-48F6-AF04-41D2AAE03542 (AT) microsoft (DOT) com...
I would like to build a control that can be deployed from a web site
that
runs in IE. The component will have no user interface. It needs to
collect
information from the local workstation and either drop the information
in
a
cookie which will be returned to the server or call the server
directly.
Can this be done? Does anyone know of tutorials or examples that
illustrate
using C# to build a control that will execute from within IE and be
callable
through jscript or vbscript?

Thanks,

Leslie






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.