Solved

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

Posted on 2009-07-07
5
265 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Cheers for your tips guys, Much appreciated.

50cal.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now