C# Desktop application to web application

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

    Accepted Solution

    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

    More information definitely needed :)

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

    Author Comment

    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 + 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

    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). includes an example.


    Greg Young

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now