Web and Windows Application Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I just started learing Visual C# and the .NET framework. I am thinnking of
developing a Windows application with features like Contacts, To-Do List,
etc.. Now, once I am done with this, I wish to develop a Web application with
the same functionality. Is it possible that I can do it in such a way that
the backend and the middle-tier logic can be the same, and I can make two
different front-ends, one Windows-based and one Web-based. I am not sure of
the entire technical details necessary for an application like this, and I am
not even sure if this is possible. Can anyone give me any insight on this?
Does Distributed Applications mean anything similar to what I want to acheive?
 
Hi,
I just started learing Visual C# and the .NET framework. I am thinnking of
developing a Windows application with features like Contacts, To-Do List,
etc.. Now, once I am done with this, I wish to develop a Web application with
the same functionality. Is it possible that I can do it in such a way that
the backend and the middle-tier logic can be the same, and I can make two
different front-ends, one Windows-based and one Web-based. I am not sure of
the entire technical details necessary for an application like this, and I am
not even sure if this is possible. Can anyone give me any insight on this?
Does Distributed Applications mean anything similar to what I want to acheive?

Yes, this is possible, in fact, the middle layer (BOL, Business Object Layer) shouldn't even be aware of the presentation layer, as the backend layer (DAL, Data Access Layer) shouldn't event communicate with the presentation layer.

How you implement this is entirely up to you, but the principles are, BOL exposes methods (either regular public methods in a DLL, or webmethods in a webservice). The windows or web application calls the necessary methods to retrieve the data to be displayed.
 
Hi Morten,
Thank you for the reply. But I still have a few doubts.

If it can be done, then where does the database reside? I mean, what options
do I have? Do I host the db on a server and run the windows app off it, and
access the same db/data through the web app from a different pc?

Say, I develop a windows application for storing a lot of personal details,
music and books catalog among others. Now this application and the db that it
uses are on my home PC. Now, when I go to work, I want to be able to use the
application, for which I have to create a web application which uses the same
db on my home PC.

I definitely will not be able to deploy the windows app to my work PC. I
think I wont be able to use the same db, even if I do deploy it to my work
PC. So, I thought developing another web app would be the best option.
Am I right? Or, is there any better and/or simpler way to acheive this? I do
hope I am expressing my idea clearly enough!!

What, in your opinion, would be the best setup for such a thing?
 
Hi Morten,
Thank you for the reply. But I still have a few doubts.

If it can be done, then where does the database reside? I mean, what options
do I have? Do I host the db on a server and run the windows app off it, and
access the same db/data through the web app from a different pc?

The DB can reside anywhere you like, but the DAL must be able to speak with it, and the BOL must be able to speak with the DAL, and the Win/Web app must be able to speak with the BOL.
Say, I develop a windows application for storing a lot of personal details,
music and books catalog among others. Now this application and the db that it
uses are on my home PC. Now, when I go to work, I want to be able to use the
application, for which I have to create a web application which uses the same
db on my home PC.

I definitely will not be able to deploy the windows app to my work PC. I
think I wont be able to use the same db, even if I do deploy it to my work
PC. So, I thought developing another web app would be the best option.
Am I right? Or, is there any better and/or simpler way to acheive this? I do
hope I am expressing my idea clearly enough!!

What, in your opinion, would be the best setup for such a thing?

If the WinApp-PC is the same as the Web-server PC you should be able to create class libraries for the BOL/DAL layers. If the WinApp will run on a different server than the Web-server, you may want to create a WebService for the BOL. Both types of applications can use this webservice.
 
Morten,
Thank you. I appreciate your help.

I just started learning C# and .NET, as I mentioned earlier.
I am primarily interested in Web Application development with .NET. I am
also planning to go for MCTS certification. Can you guide me on this matter?
Can you suggest/advice a rodmap for me? I am an intermediate-level PHP/MySQL
programmer and a freelance web developer for the last 6 yrs.

Can you guide me as to which books i should i read?
 
Morten,
Thank you. I appreciate your help.

I just started learning C# and .NET, as I mentioned earlier.
I am primarily interested in Web Application development with .NET. I am
also planning to go for MCTS certification. Can you guide me on this matter?
Can you suggest/advice a rodmap for me? I am an intermediate-level PHP/MySQL
programmer and a freelance web developer for the last 6 yrs.

Can you guide me as to which books i should i read?

Sorry, can't help you there. You may want to start a new thread just for this subject.
 
Back
Top