Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • Moderators
Posted
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).
Visit...Bassic Software
Posted

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.

Nothing is as illusive as 'the last bug'.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...