Converting C# Application to WEB Enabled .
-
-
If you designed it properly then all you need to to is slap on a different UI - All your business logic and database interaction should be separate from your UI.
Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog
-
unitecsoft wrote:
I have an application written in C# with SQL server Dbase . Would like to convert the same application to Web Enabled as ASP.NET without having to Re-write the code again in ASP.NET . Can anyone help in that ?
Your question is a little broad and doesn't provide a lot of information about the design of your current app. As Colin says, if your app has been designed well and seperates UI, Data Access and Business logic then it should be a fairly straight forward job to replace the existing UI with a web front end. (Although that depends on the complexity of the UI as the stateless nature of HTTP can make it hard to convert a WinForm to a WebForm directly)
Michael CP Blog [^] Development Blog [^]
-
Basically, there is no tool to convert a Windows Forms app to an ASP.NET app. The ways each work with it's own forms are so different, a direct translation is not possible. You're stuck re-writing your application. But, as Colin said, if your application was written properly, meaning that you kept your business and data logic in classes seperate from your application code, you've minimized the work you have to do rewriting your UI code. Properly written Business Logic and Data Access layers will be completely independant of the User Interface code. This way, you only need to write a new UI layer if you want to support multiple types of clients, like Windows Forms, ASP.NET, Pocket PC's, mini browsers (cell phones), or Embedded systems. Google for "3-Tier" and "n-tier" application development and you'll find TONS of resources on how to properly write applications that support this.
Dave Kreskowiak Microsoft MVP - Visual Basic