Click to See Complete Forum and Search --> : Re: VBScript vs. ASP
Hello.
I am starting to learn ASP and VBScript. Could you please tell me how they are different, how they are related, or whatever in terms of HTML?
I know that the tag to start any VBScript (ditto to Javascript) is <SCRIPT LANGUAGE="VBScript">, and the code for ASP is included inside <% %>. But, can VBScript be included inside <% %>?
Any inputs are welcomed.
SK
ASP is serverside technology that uses VBScript, JScript, or PerlScript to execute and on the server and generate information or perform some task that may or may not generate html info to send back to the client. ASP consists of about 6 different basic objects. Server, Application, Session, Request, Response objects are probably the most frequently used. for an example of asp code(source included) go here http://www.panteravb.com/data/ReadMe.asp for an example of an ASP page that uses VBScript to instantiate the FileSystemObject to read itself and display it's source in html to the requestor. Also includes the php3 equivalent right below it.
HarryW
Jan 14th, 2000, 06:20 AM
ASP is like a method of interpreting scripts(VBScript, JavaScript, PerlScript etc.) and producing webpages that can be dynamic (they change according to the user) or accessing databases and using that information on a webpage.
You can use ASP with just about any scripting language, so long as you have the required dlls and such to go with that language. It's probably easiest to use ASP with VBScript, since they are so similar in syntax.
the <% and %> delimiters can be used with ASP and VBScript, but if you wan to use another language, you'll have to use the <SCRIPT></SCRIPT> elements.
When a browser views an ASP web page, assuming it uses server-side scripting the browser will only see HTML, no code. ASP interprets the code into HTML before it is sent to the browser.
Another ASP page you might find useful is www.aspdeveloper.net (http://www.aspdeveloper.net)
Actually ASP code is separated or delimited using the <% and %> tags but is not tied to any language. VBScript just happens to be the easiest to implement but they are in no way linked any more than PerlScript or JScript. ASP is a technology and VBScript, perlscript, and jscript are programming languages used to implement the ASP technology. There can be no comparison between ASP and VBScript; they are essentially one in the same.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.