views:

352

answers:

2

Hi,

Our application is well structured (well we did our best!) and we have split the Model from the View, Now, we need to let some information to our client with a web access. We would like to build something small with IIS and some webform.

Here some information you might think are useful:

  1. Our controller have Thread of database queries
  2. Our database is PostGresql
  3. All is build with C#2.0
  4. We used a lot of databinding between our View and Controller in Winform.
  5. Winform will stay for internal purpose, only a small part will be available on the Internet.

What are your suggestions for this kind of move?

Update

We will host the web in our company server so the database will stay inside the business. No need to duplicate data or any synchronization.

A: 

The biggest challenge is going to be synchronizing your database between the local Winforms application and the hosted Webforms application. Once you do that, creating the web app is easy.

If your web application is read only, then you can set up replication. Find a tool that you like. Three that I found through a quick search are:

If your web application is not read only, then the problem is more difficult. You might want to consider upgrading to .NET 3.0 or 3.5 so you can use WCF. If there is a significant overlap in functionality, you might want to move your data to the web exclusively and expose it through WCF services.

Michael L Perry
We have the database in our server and the web server will be in our server too. I do not think it require any synchronization. Thx for trying.
Daok
+1  A: 

I think the "synchronizing" Michael is talking about is the data in the database and the view presented by the Winform app.

We had a similar problem, and the solution we came up with is to create a Web service that exposes the data via XML and use the service from both the web app and Winform app. Every time you update data send it to the web service, and every time you perform a query get the latest data from the service. Do not consider caching data on the Winform app unless you have profile data showing it is a bottleneck, or you want to run unconnected from the network.

This is perfectly possible in .Net 2, you do not need 3.0 or WCF.

Dour High Arch