Print Page | Close Window

ASP vs. .NET - coding difference

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5460
Printed Date: 28 March 2026 at 6:01am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASP vs. .NET - coding difference
Posted By: 3BEPb
Subject: ASP vs. .NET - coding difference
Date Posted: 02 September 2003 at 4:18pm

Sorry, maybe it's offtopic here but I just want to know is there any difference between regular vbscripting for ASP and scripting for .NET.

I currently work with ASP and someone offers me some p/t dealing with ASP.NET. Is there any significant difference for vbscript coder between them?




Replies:
Posted By: dpyers
Date Posted: 02 September 2003 at 5:32pm

vbscript is a subset of the vb programming language. Asp.net uses the vb language. Much better typing, includes a little different, etc. MS has a page on the differences.

You can intermingle asp and asp.net on the same site.

Your biggest hassle will be understanding the difference between the .NET framework and the way asp/iis works.

Where asp has about a half dozen classes - e.g. system., response., request., etc., Asp.net has around 3500.

Any code glitches that shouw up from running asp code, will be readily apparent and easily fixable. Understanding the environment well enough to produce good code as opposed to code that just runs will take longer. But hey, ya gotta start somewhere.

I give asp three more years. Parts of it have already been deprecated. With MS Server 2003, even more is deprecated as iis moves to xml/ado/clss/component based web development. In 2006, MS releases their next browser version. Betcha there's a new iis with it that just kills classic asp off. MS has walked away from languages before.

 



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: MorningZ
Date Posted: 02 September 2003 at 7:38pm

for more reading, check out the "ASP.NET Overview" on this page:

http://aspnet.4guysfromrolla.com - http://aspnet.4guysfromrolla.com

as someone who does both, i'll chime in and say its waaaaaaaaaaaaaaaaaaaaaay different thinking/coding IF you want to take advantage of what the .NET framework is capable of



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: 3BEPb
Date Posted: 02 September 2003 at 10:58pm

Thanks for answers. But I'll ask more questions, while reading a.m. link:

I do ASP (and I'm good in that) and I'm fast learner. Is it theoretically possible to be assigned on some .NET project for client/server scripting with my background and get difference/necessary syntax on the fly, let's say hours...?



Posted By: karp13
Date Posted: 03 September 2003 at 6:31am

asp.net uses complete full featured programming languages and classic asp uses scripting languages. 

I really don't think that you are going to pick up .net "on the fly", not unless you have experience with old VB.  And even then it will be very difficult.  .net has a very steep learning curve. 



Posted By: MorningZ
Date Posted: 03 September 2003 at 7:38am

i'll agree that you wont learn .NET in hours....

sounds like whoever you are doing this for is "wanting .NET just to say they have .NET", a VERY stupid move.....   if they need whatever it is done, and done fast by you, do it in ASP



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: 3BEPb
Date Posted: 03 September 2003 at 10:47am

Thanks again :)

However I'm talking abt short-time contract in different company, works with .NET. Nothing abt my current job. :)



Posted By: 3BEPb
Date Posted: 03 September 2003 at 12:41pm

Sitting on http://www.asp.net - www.asp.net for last couple of hours.

Old fashioned html+ASP forms were much more simple, then .NET Web Forms, which looks just weird.

Can you tell me, are .NET forms really making more sence than the old way (IMHO new controls don't do anything new or anything we couldn't do before, just additional pain in the neck learning them), or it's just another Microsoft' solution to force people spend more $$$ in B.G. favor? :)



Posted By: MorningZ
Date Posted: 03 September 2003 at 1:03pm

Theres no way its just more "complicated" just because MS wants it to be...

all this boils down to opinion really... you find html+vbscript "easier" than Web Controls,  i think thats insane to think that at this stage of your (limited) .NET knowledge.. maybe my opinion doesn't mean jack squat.. but i have been coding ASP since 2000 and only been seriously into ASP.NET for like 4 months now, but in that short time, i ALWAYS look to do stuff in ASP.NET because there's HUGE advantages to WebControls:

.NET >> Fields are already "re-filled" upon a postback
"Classic" >> You'd have to do value="<%= Request.Form("ThisField") %>" to fill it back in on postback

.NET >> Validation controls hooked onto a Web Control.. all automatic, does client and server side checks
"Classic" >> right all your own javascript, and error handling in script

.NET >> ControlName.DataBind = some sort of collection (array, "recordset", whatever).  Page doesn't have to run this but the inital page load
"Classic" >> needs to goto the DB and loop through and create things like "option" every time the page is loaded

.NET >> Disgustingly easy to disable and hide fields on a programatic basis
"Classic" >> have script kick out javascript to do all this (bleck) or tons of script if...then statements all embedded in the code

.NET >> Code Behind rocks.... pages get parsed and compiled one single time
"Classic" >> the dll has to verify that the page to execute is free of programing errors, syntax errors, etc, on every execution

Now there's one major "faster" thing i have run across in Classic over ASP.NET, and that's the trouble of going to the DB and getting a "recordset" (which technically doesn't exist anymore in ASP.NET).. BUT this is handled my making a nice little module in the application to have some static functions to go do the 10-14 lines of code it takes to Open a connection, feed it SQL, put it into a DataSet, bind it to something like a DataReader, and return the DataReader..  bam.. so in my pages, i simply have something like:

Dim ThisReader As SQLDataReader
ThisReader = GetDataReader("my SQL statement here")
if ThisReader.HasRows() then
   'Do what i need
end if

bah, to me, you thinking "HTML and ASP is easier" is just totally keeping a closed mind about ASP.NET... maybe you should just stick to what you know :-)

there's so much more such as caching, xml access, user controls, stuff like image manipulation, sockets access, ack, soooooo much more available



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: karp13
Date Posted: 03 September 2003 at 2:06pm
Ya what he said!


Posted By: Diep-Vriezer
Date Posted: 03 September 2003 at 2:32pm

He's right. Asp.NET is MUCH more powerfull and easyer, when you can handle it... I can do that now (abit).. and my web-applications run faster, better, and are easy to edit.

Just switch to asp.net, who cares about a couple extra day's, weeks or months . ASP.NET rulezz



-------------
Gone..


Posted By: 3BEPb
Date Posted: 04 September 2003 at 1:49am

Originally posted by MorningZ MorningZ wrote:

i think thats insane to think that at this stage of your (limited) .NET knowledge..
Actually, lack of it, so far :)))

Thanks, guys. I don't want to bother you any more with questions I can have explained at http://www.asp.net - www.asp.net , but just one question I'm sure I won't be able to find there.

For my vbscripting under ASP i can handcode everything I need even in notepad. Can I do the same with ASP.NET scripting, or editing/coding is possible only in project, opened, let's say in InterDev?

BTW, it's a SERIOS minus, that .NET can't do both javascript and vbscript at the same page :((((( How do you think I can create an exports, like bannerexchange, since standard .NET adRotator has much less built-in functionality, than I need and cannot deal with javascript?

p.s. the last one is not an actual question... that was just a scream :(((



Posted By: MorningZ
Date Posted: 04 September 2003 at 6:12am
Originally posted by 3BEPb 3BEPb wrote:


BTW, it's a SERIOS minus, that .NET can't do both javascript and vbscript at the same page :((((( How do you think I can create an exports, like bannerexchange, since standard .NET adRotator has much less built-in functionality, than I need and cannot deal with javascript?

p.s. the last one is not an actual question... that was just a scream :(((


dunno, why you are "screaming", of course you can do JS code right on an ASPX page

Visual Studio.NET allows you to take advatange of Code-Behind and References and Easy use of creating datasets and everything else....

You can do ASPX pages in notepad (but why?) and do the script, html, and javascript on the single ASPX file, but as mentioned above, you'd be missing out on a lot of the whole concept of a layered application

you'd at least want to use asp.net's free tool, Web Matrix......



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Diep-Vriezer
Date Posted: 04 September 2003 at 8:32am
Of course you can deal with javascript. SCRIPT is client side, so just put it in the html code, right?

-------------
Gone..


Posted By: 3BEPb
Date Posted: 05 September 2003 at 10:50am

Sometimes I need to generate javascript using vbscript. But I understand (from http://www.asp.net - www.asp.net ) that this is impossible. Thanks for explanation again.

MorningZ, don't you know, is Dreamweaver MX - good development tool for .NET?



Posted By: MorningZ
Date Posted: 05 September 2003 at 10:57am

wherever you are reading on asp.net that its "impossible" is misleading you...

you could have an <asp:literal> control in the aspx page and from code behind (or online for that matter) generate the string that holds the JS you need...

as for Dreamweaver, i'm not a good person to ask, i learned VB/VBscript in Visual Studio 6.0, and it was just natural for me to learn VB.NET in Visual Studio.NET which i have been religiously using



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Diep-Vriezer
Date Posted: 06 September 2003 at 3:56am

( Im using VS.Net Enterprise Archtect (...), wich works just fine for me! )



-------------
Gone..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net