I have an ASP.NET site. Since I first worked with WFA (Windows Forms Application), and not with ASP.NET, I first created a simple form application. But, as we know, WFA only works on Windows, and so I wanted to move the application to the site. Naturally, we have XML applications and, in fact, code. The question arises - can I put my applications on the site, taking XML and executing program code?

    1 answer 1

    See it. Partly it is possible, partly not.

    If your code is divided into model, controller / VM and view, you can easily transfer your model to an ASP.NET application. It will be the same, often without any changes.

    VM / controller, apparently, will need to be corrected, and even rewritten again.

    A view (View) will need to just throw out, because you have a completely different method of displaying information to the user.


    And if you do not have a separation into layers, then everything is worse. I would advise then to separate the model, it can be transferred. The rest is most likely not.


    There is no question of transferring the finished program so that “it just takes it and earns it”. Alas.