
Signature
Happy coding!
Morten Wennevik [C# MVP]
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,
> > I just started learing Visual C# and the .NET framework. I am thinnking of
[quoted text clipped - 10 lines]
>
> 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.
Morten Wennevik [C# MVP] - 26 Aug 2007 18:44 GMT
> 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
[quoted text clipped - 9 lines]
>
> 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.

Signature
Happy coding!
Morten Wennevik [C# MVP]
Prithvi - 26 Aug 2007 18:52 GMT
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?
> > Hi Morten,
> > Thank you for the reply. But I still have a few doubts.
[quoted text clipped - 20 lines]
>
> 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 Wennevik [C# MVP] - 26 Aug 2007 18:57 GMT
> Morten,
> Thank you. I appreciate your help.
[quoted text clipped - 6 lines]
>
> 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.

Signature
Happy coding!
Morten Wennevik [C# MVP]
Prithvi - 26 Aug 2007 19:04 GMT
ok. Will do that. Thanks a lot anyways!!
> > Morten,
> > Thank you. I appreciate your help.
[quoted text clipped - 8 lines]
>
> Sorry, can't help you there. You may want to start a new thread just for this subject.