Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 23rd, 2004, 01:16 PM
Authorized User
 
Join Date: Sep 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default From VB 6.0 to VB.NET or ASP???

Hi, all,

I have some old VB 6.0 apps. I am in the process of evaluating if and how we can upgrade the VB 6 apps for the future, and using what tool.

It seems to me I can upgrade VB 6 to VB.NET with little problem, but I want the VB apps to be able to run on intranet environment, and that seems to bring the ASP into the picture, but this seems to be more complicated.

So, can VB.NET apps run like a web application on a browser? pretty much like an ASP applications? if not, what's the right way to convert VB 6 to ASP keeping the old codes as much as possible, if not all of them?






 
Old September 23rd, 2004, 01:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I don't know who told you that you can upgrade from VB6 to VB.NET with "little problem" but I disagree 100% with that statement. It's not easy. Moving from VB6 to VB.NET (Winforms) will be hard enough. Then converting them to webforms will be even harder.

Your upgrade path will depend on the way you wrote your old VB6 code.

Did you seperate the business layer from the UI? if you did, then you can compile your VB6 DLL's and use COM INTEROP to talk to them with a .NET UI (Either webforms or winforms). If you mixed all your code with your UI, your looking at a complete re-write.

VB.NET is a language.

ASP.NET is a technology (or set of objects) you can use any .NET language to write ASP.NET compliant code.

So, yes, you can run VB.NET apps like a web application- as long as they meet the ASP.NET standards. Which means your UI needs to be "Webforms" instead of "Winforms" (and all that goes along with it).




Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old September 23rd, 2004, 01:42 PM
Authorized User
 
Join Date: Sep 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I understand what you're saying, and that puts me in deep thoughts. =)
Our current VB codes are not well "separated", and rewrites may well be the route to take. All I want is an app that will not need client-desktop installation or update, and it should be server-resident and browser-based, so that I can give user an URL, and they're ready to go. I guess that points me to ASP?!
Anything I need to pay attention to if I do convert it to ASP? I can keep the classmodules by building DLL, I guess I need to replace all the WinForms with ASP/HTML forms? any good books or articles out there?

 
Old September 23rd, 2004, 03:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Yes, you would need to go to ASP if you want to use a clientless install.

There's nothing good on converting from VB6 to ASP.NET - I really think it's a rewrite situation.

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old September 24th, 2004, 07:13 AM
Authorized User
 
Join Date: Sep 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, thanks for the reply. I am not surpised by this answer.
But wouldn't it be a nice, pleasant surprise if someone out there tells us that, we're both terribly wrong?! =)
Thanks again.

 
Old September 24th, 2004, 08:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I've answered this question countless times.. going back to the beta of the 1.0 framework when I spoke to the NYSIA about the "upgrade path" to .NET... the answer always remains the same.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee





Similar Threads
Thread Thread Starter Forum Replies Last Post
vb.net 2008 re: VB.NET databases book bigbearjeff VB.NET 0 June 2nd, 2008 01:22 PM
send MASS Emails in ASP.NET 2 with VB.NET 2005 alexdcosta ASP.NET 2.0 Basics 1 July 17th, 2006 12:31 AM
Parse XML doc using VB.NET into ASP.NET page kwilliams Classic ASP XML 17 November 11th, 2005 10:42 AM
VB.Net question on Windows VB.Net datagrids dmsousa VS.NET 2002/2003 1 January 19th, 2005 02:45 PM
vb.net 2002 - vb.net 2003 book metalaaron Wrox Book Feedback 0 August 2nd, 2003 10:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.