Solved

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

Posted on 2009-07-07
5
268 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Question! 4 36
Graphics 2 28
Why do I get an exception when doing a bulk insert into a PostgreSQL DB in my .Net application? 1 43
MediaHelp 4 23
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 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