Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I use VB 6 in an ASP.Net page.

Status
Not open for further replies.

NeeNee

Programmer
Apr 2, 2002
97
CA
I am new to ASP.Net but have been doing ASP for a few years now. Many of the examples I have found on the web describe using VB as a language in the asp.net pages, but they do not elaborate if they are using VB6 or VB.Net.

Can I use VB6 in ASP.Net?
Is this the line I would use at the top of my aspx file:
<%@ Page Language=&quot;VB&quot; %>.
What would be the sintax for VB.Net?

I am already familiar with VB, being an Access/VB/VBScript programmer, so if I don't have to learn VB.Net, that would make my boss happy since I don't have to learn 2 new lanquages.
 
The answer is yes & no.

VB6 can make it's way onto an aspx page via a wrapper for a COM object, but performance is going to take a hit, and would only be advisable under very few circumstances, say maybe if your company has invested thousands upon thousands (or more) money in the development of a COM object library that economics dictates can't be completely re-done in .NET at the present moment.

The short answer is no... the page directive that you put there is for VB7(VB.NET), and specifies that the page language will be VB7.

There's a bit of a learning curve for VB developers moving to .NET, but mostly, it's learning how to use the .NET framework effectively, and not so much VB7 syntax.

Just go grab yourself a good ole WROX book, curl up for the weekend with some pizza, cokes, and a laptop, and you'll be up and running in no time.

-paul

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top