UserControls (Web/Win)

O

Ole Hanson

Hi

I have been wondering what did happen to the "universal" solution of being
able to use the exact same controls in both web and win? These guys are
called ActiveX controls and could in the old world (COM) be developed once
and then applied in both scenarios!

What is the .NET alternative to this??

Thanks!
/Ole
 
S

Scott Mitchell [MVP]

Ole said:
I have been wondering what did happen to the "universal" solution of being
able to use the exact same controls in both web and win? These guys are
called ActiveX controls and could in the old world (COM) be developed once
and then applied in both scenarios!

What is the .NET alternative to this??

Ole, you can host a .NET control in a Web application, but the client
must have the .NET Framework installed and be using Internet Explorer
5.01+. There's an article discussing how to host .NET controls in a Web
environment at:

Hosting a Windows Control in a Web Form
http://aspnet.4guysfromrolla.com/articles/052604-1.aspx

hth, and Happy Programming!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
 
N

Nicholas Paldino [.NET/C# MVP]

Ole,

The alternative is to embed a .NET windows control into IE. However,
this isn't the preferred way of doing this kind of work anymore, because you
really don't gain anything from embedding what is effectively a windows form
in the browser.

Rather, what you should consider is using a "Smart Client" where you can
download the exe from the internet (and run it, it won't require
installation, or minimal installation), which then makes all the calls it
needs through a set of web services.

Hope this helps.
 
A

Alvin Bruney [MVP]

I have been wondering what did happen to the "universal" solution of being
able to use the exact same controls in both web and win?

What happened? it was a good idea. but that's all it was. we need a few more
years before that good idea can be translated into a portable, scalable
solution that makes sense in enterprise software.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top