Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > bringing my program to the web
 

bringing my program to the web

i created a windows database search application a while ago in visual studio 2005, and now i want to allow web query through a browser. But im kinda stuck on how to import my windows application into a new web application. could someone enlighten me on how to do this? im kinda new on all this .net stuff. my fall back plan currently is to create a new web application in visual c# 2008(cos i dun have visual studio 2008) and rewiting all my 200 pages worth of visual basic code into c#..ouch..i dread the thought of even starting...:(
  • Moved byYiChun ChenMSFTFriday, February 27, 2009 5:54 AMWindows Application Deployment (Moved from .NET Framework Setup to ClickOnce and Setup & Deployment Projects)
  •  
wuiz  Thursday, February 26, 2009 2:57 AM

Actually, this is not a deployment question, it appears to be about converting a Windows Forms application to a Web application, if I'm understanding it correctly.

First, you don't have to convert to C#. You can use VB.

Second, how much effort it takes to port the application to the web depends on how you have structured your application. If you have the data access layer, business logic layer, and UI in separate layers, it will be easier to port, because you can use the code behind for all but the UI. Although I wouldn't have something reading directly into a database, I would set up web services to receive and respond to any data queries.

The answer is you basically have to rewrite a lot of it, and port the parts of the code that you can keep manually. I'm no asp.net expert, but you can find some here:http://www.asp.net/if you want to ask someone else.

If you want to deploy your Windows application to a web server, and have people install it on their computers from the web, I can help you with that. But I don't think that's what you're asking.

RobinS.

GoldMail.com


Ts'i mahnu uterna ot twan ot geifur hingts uto.
RobinDotNet  Friday, February 27, 2009 11:05 PM

Hi Wuiz,

Welcome to MSDN forums.

I am moving this thread from Base ".Net Framework Setup"forum to the "ClickOnce and Setup & Deployment Projects" forum, since the issue is related to Windows application deployment. There are moredeployment experts in the "ClickOnce and Setup & Deployment Projects" forum.

Thanks


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
YiChun Chen  Friday, February 27, 2009 5:54 AM

Actually, this is not a deployment question, it appears to be about converting a Windows Forms application to a Web application, if I'm understanding it correctly.

First, you don't have to convert to C#. You can use VB.

Second, how much effort it takes to port the application to the web depends on how you have structured your application. If you have the data access layer, business logic layer, and UI in separate layers, it will be easier to port, because you can use the code behind for all but the UI. Although I wouldn't have something reading directly into a database, I would set up web services to receive and respond to any data queries.

The answer is you basically have to rewrite a lot of it, and port the parts of the code that you can keep manually. I'm no asp.net expert, but you can find some here:http://www.asp.net/if you want to ask someone else.

If you want to deploy your Windows application to a web server, and have people install it on their computers from the web, I can help you with that. But I don't think that's what you're asking.

RobinS.

GoldMail.com


Ts'i mahnu uterna ot twan ot geifur hingts uto.
RobinDotNet  Friday, February 27, 2009 11:05 PM
Hi Wuiz,

> and now i want to allow web query through a browser.

Could you please tell us what you mean by "web query through a browser"?

If you mean navigate to a web page and submit query from the web page, you need to create a ASP.NET web application. If you mean send the query string in the URL through a browser, e.g. IE, you can deploy your WinForms application via ClickOnce. Thus, the user can type a URL in IE and launch the application. The application can retrieve the query string passed with the launch URL.

Hope this helps.

Sincerely,
Linda Liu
Linda Liu  Monday, March 02, 2009 8:00 AM

You can use google to search for other answers

Custom Search

More Threads

• .Net 2.0 Bootstrapper
• Relative paths and ClickOnce problem
• Custom Action is being called on uninstall of patch
• cannot deploy application using clickonce within new dll
• When I embed my exe in setup project in VS2008 i get exception
• Control hosted in Web page works in IIS5 but not IIS6
• Bootstrapper confusing .NET 1.1 for 2.0...?
• Can Windows Forms Controls Do This?
• Where is my application??!!
• project setup?