mcerk Posted December 8, 2004 Posted December 8, 2004 Someone told me, that you can build exe and web page using the same source code in VB.net Is it possible? I don't think it is, becouse this is not the same thing. PS: what is web service? is this what I am asking? Quote
Moderators Robby Posted December 9, 2004 Moderators Posted December 9, 2004 Yes you can easily use the same code for WinForms and WebForms. Your main goal should be to seperate the code that accesses the database and the code that follows your business rules from the UI (Code that renders your pages or forms). Quote Visit...Bassic Software
neodammer Posted December 9, 2004 Posted December 9, 2004 Robby's right. Just alittle different protocol. Quote Enzin Research and Development
Wile Posted December 9, 2004 Posted December 9, 2004 In order to do as Robby said, you have to split your software in multiple layers. If your feeling up to it, this MSDN article is a good entry point on what MS has to say about using layers in software with .NET. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/distapp.asp If you follow the patterns link at the begining of the article you can also quickly find the application building blocks that MS has created for .NET. These might be most helpfull when you are building big enterprise applications, but some of the ideas are also very applicable at smaller sizes. Quote Nothing is as illusive as 'the last bug'.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.