Learn how to a build a cloud-first strategyRegister Now


C# Desktop application to web application

Posted on 2006-05-24
Medium Priority
Last Modified: 2010-04-16
Is there anyway to do a full convert? =] if not, where do I start?
Question by:addicktz
  • 2
LVL 37

Accepted Solution

gregoryyoung earned 2000 total points
ID: 16756996
Unfortunately there is no way to convert a desktop app to a web forms app, this is largely due to the difference in behaviors that exists between an interactive desktop app and a web app.

I guess it would depend on how the application was designed .. is it a tiered application? If so you would only need to create a new presentation tier (other code is shared). This is a common methodology.

If the design was taken a step further using MVC or a similar pattern then one could actually keep the majority of the front end logic as well (only changing out the actual display code)

Can you offer more detail on exactly how the app was written?


Greg Young
LVL 12

Expert Comment

ID: 16757186
More information definitely needed :)

There really is, as I'm sure you know, signifigant differences between the windows and web forms.

Author Comment

ID: 16766618
Ok, well there was going to be a lot of chat style features for team correspondence... Instant Messaging, Chat Rooms with invites, file transfers (figure i can replace with some sort of upload, and IM of link), I have been doing some reading and it sounds like to me that I need some sort of continous connection like Ajax?...I guess this type of coding takes the client out of the equation, is there anyway I can do a client to client connection using c#.net + asp.net? What about data storage? am I going to be able to write to the local hd with the web forms easily or is it all conventionally just stored on the web server?
LVL 37

Assisted Solution

gregoryyoung earned 2000 total points
ID: 16766714
in principle your data would be stored on the webserver.

As for chat, AJAX is a possibility but due to the nature of http you would end up in a pull model (i.e. it would have to poll for new messages) which is inherently not scalable. As an alternative you could host winforms code (similar to an activex component) in the browser (and open a normal TCP socket for communications).

http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/default.aspx includes an example.


Greg Young

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question