471,348 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

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

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.
Dec 13 '05 #1
2 994
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"David" wrote:
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.

Dec 13 '05 #2
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).

--

Derek Davis
dd******@gmail.com

"David" <Co*********@AdsorptionProcessModeling.com> wrote in message
news:siHnf.17618$Mi5.13200@dukeread07...
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.

Dec 14 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by gerard.l1.demers | last post: by
6 posts views Thread by David Hayes | last post: by
19 posts views Thread by Darren | last post: by
14 posts views Thread by D. Alvarado | last post: by
4 posts views Thread by alexandre.brisebois | last post: by
reply views Thread by Helmut Jarausch | last post: by
6 posts views Thread by brandon.e.taylor | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.