Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding WebDav server to windows application

Status
Not open for further replies.

Komil13

Programmer
Sep 26, 2001
50
US
Hey Guys,

I've got a asp.net web application. Its a simple application which connects to a SQL Server 2005 Mobile database. I would now like to write a windows application which will wrap this asp.net web application and allow it to be executed normally.

I was thinking of using the in-build webdev server somehow in the windows application. Then, add the webdev.exe to the setup project of the windows app.

Can this be done? If so, how would I go about doing this? I have been searching on google, and will continue to do so. I haven't found a info on this topic.

Thanks.
 
if you want both a desktop and web app front end then you should seperate your business logic from your presenation. Then have your presentations reference the business logic.

This is the perfect example of the MVP pattern (Model View Presenter). For a crash course it looks like this.

Presenter objects: controls how the GUI works (independent of Web or Desktop). This is where you reference your business logic.
View objects: Interface object which has getters/setters for values in the GUI.
GUI: Web or Desktop. Each form inherits the appropiate view.

This is probally a major change from how your system currently works. If the MVP isn't an option. I would recode the project for Desktop.

for more information google "mvp pattern"

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Well, my application will be an web application. I would like to encapsulate it to be kind of like an embedded application inside a windows application.

Basically, the client machine will not have a web server on it and will not have access to the internet. Therefore, the web application and the windows application will have to be on the same machine. So then, the windows application would use the WebBrowser control to launch the web application.

What I wanted to know was if there was a way to embed the Webdav server into the windows application and have it act as a server for the web application.
 
that defeats the purpose of it being a web app. by defination a web app is hosted on a common server and the clients access the page using a web browser.

if your planning on having each client have there own local copy of the application then that's a desktop application.

If this is an intranet application then host the appilcation on a server with IIS installed. then point client browsers to server to access the application.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top