Click to See Complete Forum and Search --> : Scripting Languages


amitg
April 12th, 2002, 02:44 AM
Hi there

I have been doing web development for some time. I have a question in my mind. I have not got satisfying answer from anywhere yet.

Why do we generally use javascript on client side and vbscript on server side while programming in asp. Why don't we do it vice versa or same language on both sides?

Thanks in advance...

Amit

Brad Jones
April 12th, 2002, 08:27 AM
JavaScript is the scripting langauge of choice for the client because almost all browsers support it. Fewer browsers support VBScript.

VBScript is generally used with ASP on the server because that is what Microsoft developers initially used. Since it is occurring on the server, portability is much less of an issue -- if an issue at all.

With ASP.NET, you can use almost any langauge (except VBScript) on the server to do ASP.NET development. (You'd use VB instead of VBScript).

- Brad!

Site Manager, CodeGuru.com
Check out my newest book (Sams Teach Yourself C# in 21 Days):
http://books.internet.com/books/0672320711