Can a Window C# app be ported to the Web?

  • Thread starter Thread starter David
  • Start date Start date
D

David

One advantage of ActiveX is that something that is developed for (and tested
with) a desktop app can be used on the web. Can .NET do this? Is there a
way to develop a user interface first for a Windows app and then use that UI
on the Web? It seems to me that the classes used to develop a Forms-based
Windows app are very different from those used to develop ASP.
 
You can create a windows forms UserControl and host this in internet explorer
with an appropriately constructed Object tag (See MSDN for details), however
it will run in the IE restricted "sandbox" by default, and CAS policy
settings must be adjusted for it to be able to do things link access the
filesystem or databases.

Peter
 
Why not decouple the UI from the business and data layers and use them with
any UI you want (be it web or win32). You are trying to re-use the wrong
part... I think an n-tier design would get you where you want just in a
slightly diff way. Take a look at Model-View-Controller (not .NET
specific).
 
Back
Top