View Full Version : what is the difference between
Aymen++
03-17-2003, 08:19 PM
what is the difference between ASP and VBScript?
VBScript is one of the sripting languages you can choose for ASP.
It's the most frequently used one. others are Perl or JScript.
ASP can best be thought of as a framework with some (6) objects.
VBSript is the default scripting language for IIS. Only the VBscript and Jscript-engines are shipped with IIS so you best choose one of these languages to write your asp code in. (Unless you're planning on running asp on an Apacht, then choose Perl)
whammy
03-18-2003, 01:26 AM
Ew, I would hate to have to learn Perl for use with ASP.
;)
I guess if I had to... but I'd much rather learn .NET using C#. It's so refreshing. :) I am taking 3 vacation days this week (5 days before I have to work again) and I am going to spend as much time learning C# with web apps and windows applications as I can... it won't be enough time, but I'm sure I'll learn something... :|
whammy
03-18-2003, 01:32 AM
P.S. VBScript when used on a LAN (and by that, I mean locally, not in a web app) is very powerful - if you know how you can edit registry entries programatically on an entire network - piece of cake.
VBScript when used within a classic ASP program is also fairly powerful, and provides probably 90+ % of the functionality inherent in ASP.
However, don't EVER (read that again - don't EVER!!!) use VBScript as a web scripting language for client-side use. I've seen a lot of people that were very confused in this regard trying to make VBScript work in Netscape (client-side) - which is impossible - a Netscape browser treats VBScript the same as it would "*(#&Y(U@#NF()*&@#N*(&@#F*(#@F()@#*F" !
VBScript (client-side) is only supported by Internet Explorer browsers (imagine a crippled old man with one left leg, and one right arm, that can't talk, and has trouble hearing! - that's VBScript on the client-side, for someone using a non-IE browser... actually, he'd probably be dead, not crippled!).
It's extremely important that one understands the difference between what's processed on a web server, and what is processed locally - and that applies to all programming languages that have anything to do with the 'net.
Regarding the first two points, you need to check this out:
http://www.w3schools.com/asp/asp_ref_filesystem.asp
I would also check out WSH (Windows Scripting Host - I'm sure you can find plenty of info using google or even w3schools I think), since it's very powerful as well when you combine it with VBScript on a LAN or on a single machine.
If you're considering which language to use with classic ASP, there is no choice - it's VBScript. However, that's the only platform (besides locally on Windows) I would use .vbs on. Don't even consider trying to use VBScript client-side with a browser!
;)
Spudhead
03-18-2003, 02:19 PM
If you're considering which language to use with classic ASP, there is no choice - it's VBScript.
I disagree :rolleyes: ;)
Most of the pages I write involve both server-side and client-side scripting. In using VBscript serverside, I'm not only forcing myself to use a clunky language that takes ages to write (who decided that an "if" statement needed "then" on the end of it?? What's wrong with good ol' curly brackets?) but also to use conflicting syntax structures that increase the possibility of errors occuring; I'm foverever Dim-ing when I should be Var-ing, putting semicolons where they shouldn't, and referencing multidimensional arrays in ways I wouldn't care to discuss on a public forum...
Use Jscript. It's neater, easier, and doesn't screw with your head.
raven
03-18-2003, 02:30 PM
I think in the end it comes down to your past experience to some degree. I use VBScript for ASP because I moved from VB development into ASP work, so it was an easy progression. A fellow developer of mine prefers to use Javascript for his asp, because that is what he is more familiar with. You can imagine the fun we have........
oracleguy
03-18-2003, 06:25 PM
Originally posted by raven
You can imagine the fun we have........
Probably just as much as I have with the person I work on this one website with. He writes PHP, I write ASP.... It creates an interesting time.
But yes I agree with you Raven, it has to do with your programming background, which languages you know the best and such.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.