views:

265

answers:

3

Hi,

How can I use some projects I created using Visual C# 2010 in a Web Application.

I want the projects all separated in the web application if possible

Thanks :)

+2  A: 

Simply separate the parts of the application that are specific to Windows from the parts that are not specific. Similarly, separate the parts that are not web-specific from the rest. Put that parts not specific to any particular technology into one or more common class library projects.

Hint: these common class library projects should build with no references to System.Windows.Forms or to System.Web. Otherwise, they may not be general enough.

John Saunders
+1  A: 

Are those projects class libraries? Most probably you can use them (except the windows application projects) as it is in the web application by adding references of them in the web application.

You can separate out the classes in those windows application in the class libraries and then you should be able to add the class libraries in the Web application which would use the class libraries.

ydobonmai
A: 

If you are not looking to rewrite the application and would prefer a quick start on creating the web application then I'd investigate how useful the tool offerings are in this area.

A quick look on SharpToolbox reveals two candidates:

  1. suite4.net
  2. Visual Web GUI

I am not affiliated with any of these nor have I tried them and so cannot vouch for any of the claims they make about their products, but it might be worth trying them out.

Morten Mertner