...

View Full Version : Confusion Over ASP and ASP.NET



phill_ridout
02-27-2007, 12:35 PM
What is the difference? Are there any advantages to one or the other?

Max01
02-27-2007, 12:44 PM
Hi,

From waht I've seen, and given my limited coding knowledge, ASP.NET brings far more to the development table than its forerunner. It incorporates a great many classes and exponentially cuts down on the amount of coding needed to get an application up and running. That's why I chose to plump for ASP.NET, though as I'm discovering, it comes at a price.

Max01

phill_ridout
02-27-2007, 12:47 PM
Ok, but what is the diference in the way that you write it? is it still the same? are they both compatable in the same file ect?

Max01
02-27-2007, 01:04 PM
In asp I used vb script, whereas with asp.net I'm using vb.net. The latter and c# appear to be the languages of choice for asp.net. Be aware that my codiung knowledge is limited to say the least. As for joint compatibility, I haven't mixed vb script and vb.net, though you can mix vb.net and c#.

nikkiH
02-27-2007, 02:25 PM
There are not the same, they are not allowed in the same file.

There are a ton of differences. I can't list them all, but .NET is an entire framework that competes with Java/JSP in terms of scalability, flexibility, and enterprise class performance.
.NET can make Windows applications (forms and console), web services, web applications, and more. Many tasks can be done almost out of the box using Visual Studio, much more rapidly than Classic ASP.
Classic ASP is just interpreted VB (rarely, jscript) for web pages, for the most part. You hand code it all, or if you're lucky, you have Dreamweaver canned code that you can modify. It's old, outdated, and should not be chosen for any new things if you can at all help it. It's legacy (old crap) and just doesn't have the power, flexibility, scalability, and scope of .NET.

The downside to .NET is that it is isn't overly easy to create good stuff without Visual Studio. Technically VS is not required (the web server that serves up your pages needs only the .NET framework to compile and run the code), but there is so much to .NET that you really need the IDE to get the rapid development time that the framework promises.

Things .NET can do much easier than Classic ASP:
* Database access and output to a page (datagrid, gridview, repeater controls, etc)
* Validate form input (Validator controls)
* File uploads (FileUpload control)
* Anything dynamic from a database (nearly all controls can be data bound with query results)
* Tabbed views (MultiView, View controls)
* New AJAX.NET (http://ajax.asp.net/ajaxtoolkit/) allows for nearly out of the box coolness like always visible controls (headers stay with user as they scroll, etc), calendars for choosing dates, toggled controls, hovering menus, and more.

I can think of more but this post would be huge.

nikkiH
02-27-2007, 02:27 PM
In asp I used vb script, whereas with asp.net I'm using vb.net. The latter and c# appear to be the languages of choice for asp.net. Be aware that my codiung knowledge is limited to say the least. As for joint compatibility, I haven't mixed vb script and vb.net, though you can mix vb.net and c#.

No, you cannot MIX them in the same file.
You can mix them in terms of the fact that once compiled down, both are made into what is called IL, Intermediate Language. The IL is then compiled further into DLLs.
You can have two classes, one written in VB and one written in C#, which can then call each other's methods, instantiate classes, and work together.

See this beginner guide:
http://en.csharp-online.net/.NET_Framework_and_CLR

Max01
02-27-2007, 02:41 PM
But they can be mixed within the same project can they not?

nikkiH
02-27-2007, 04:31 PM
Studio won't let you; or at least it didn't let ME.
I've never tried it other than attempting to import some VB into my C# app.
And when you choose new project, you have to pick a language.

phill_ridout
02-27-2007, 06:10 PM
So where can i get these .net tools and how much?

Max01
02-27-2007, 08:14 PM
I suggest you download MS's Visual Web Developer 2005 Express from its web site and take it from there. It's free, you just need a valid operating system.

nikkiH
02-27-2007, 08:44 PM
Many tools, including AJAX.NET, do not support the free Visual Editions.
But they're great to start off to decide if you like it.

nikkiH
02-27-2007, 08:46 PM
http://msdn2.microsoft.com/en-us/vstudio/default.aspx
http://ajax.asp.net/ajaxtoolkit/

Roelf
02-28-2007, 02:11 PM
Many tools, including AJAX.NET, do not support the free Visual Editions.
But they're great to start off to decide if you like it.
According to this http://download.microsoft.com/download/9/d/8/9d8a3ff9-e520-4c69-a7a0-aad7a3dc596d/HDI-01-Get_Started_with_ASPNET_AJAX.wmv video, the Visual Web Developer Express Edition, does support http://ajax.asp.net/.

nikkiH
02-28-2007, 02:20 PM
Sorry about that, I was thinking of the extenders in the toolkit, since in order to customize classes, you need to use C# or VB.
As an aside, this is a seriously cool toolkit. :D

http://www.codeplex.com/AtlasControlToolkit



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum