Can I convert from C# to asp.Net to host application online? [closed]

独自空忆成欢 提交于 2019-12-06 04:46:29

All of your standard C# classes/libraries should migrate over smoothly. What you're going to have a tough time with is converting the (presumably) winforms user interface into a fully-functional web interface. There is no direct conversion, but most winforms controls have an approximate web equivalent.

Sounds like a good potential candidate for the CodeDOM. This article should point you in the right direction; it demonstrates how to convert a windows form to a web form, and appears to do it quite successfully from the screenshots.

At the end of the day, it may be easier to just handle it manually. Unless this is a very simple application, you'll probably have to bite the bullet and DIY.

I think the easiest answer to this question is, no. Desktop app and web apps have completely different structure even though you can use C# in the code behind. There's no simple way to convert a desktop app project to an ASP.net project that I know of.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!