Solved

C# .. Client Application to Web... How?

Posted on 2009-07-07
5
276 Views
Last Modified: 2013-12-17
Hi All,

So Here's the Main concept,
I am writing a basic database application - the idea is a C# application front end with a SQL database(Express Edition) to hold the data. This will be developed in Visual studio 08 using c#.

Lovely Jubilee so far, So the application works nicely (Theoretically), How would I then get this to also have a web front end ... So It will have desktop access(Via the application installed) and a Web access in-case your away from your computer.

Would it be a case of Just hosting the code in IIS somehow?
Is there a conversion that is avaliable?
Is it a different language?
etc etc...!?!

If someone could explain how to get the desktop application working from a Web front end that would be smashing!

Many Thanks,
50Cal.
0
Comment
Question by:50cal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
alexpercsi earned 400 total points
ID: 24798071
The bad news is you can't just use the same code for both web and desktop interfaces.

The good news is you can reuse a large portion of your code, at least in theory. From what I see you have desktop .NET development experience so I am going to give you an ASP.NET tutorial. I think that is the best we can do for you here, it is simply too much to walk you through the whole process of developing a web application.

The end result will be two separate applications that have similar code, one is the desktop application, one is the web application which you will deploy to the IIS server on your machine.

Here is a pretty good tutorial
http://www.deitel.com/articles/csharp_tutorials/20060128/index.html

Best Regards,
Alex.

P.S. you might want to separate your Data Access methods and possibly your business logic in separate projects, and reuse them in both applications.
0
 
LVL 40

Assisted Solution

by:mrjoltcola
mrjoltcola earned 100 total points
ID: 24798131
To add to alex statements, if you developed it as a Winforms app there will be much more effort to move it. If you are using newer Windows Presentation Foundation (WPF), it stores the GUI definitions in XAML, which can be also used in Silverlight. So you might investigate Silverlight as well. I have not ported a local WPF to Silverlight but I know the marketing hype from Microsoft is that the GUI definitions in XAML are good for reuse.
0
 
LVL 7

Expert Comment

by:alexpercsi
ID: 24798193
That is correct mrjoltcola, but the time to develop the XAML may not be justified seeing as 50Cal only needs ONE application.
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24798229
I did not recommend he develop a new XAML app. I was just saying if he had already used WPF in his original app, he might reuse it, since he did not specify whether he used WinForms or WPF.

0
 
LVL 7

Author Comment

by:50cal
ID: 24798525
Cheers for your tips guys, Much appreciated.

50cal.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

623 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