View Full Version : vbs vs asp
09-15-2005, 08:17 PM
how does a vbs compare to an asp page.
Is the coding the same.
can you open a db from a vbs?
can I use the following method?
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
' Response.write xmlhttp.responseText
set xmlhttp = nothing
09-15-2005, 08:32 PM
ASP is a platform (if I'm using the right term).
VBS is a scripting language supported by ASP, as well as other applications, such as Excel (in VBA form).
So, there really is no 'vs', per se.
09-15-2005, 08:38 PM
so does all vbscript code work in a vbs?
09-16-2005, 03:24 PM
Still not sure what you're asking here.
.vbs IS a vbscript file. It is meant to run on a PC, usually as part of an HTA.
VBScript (NOT the full VB language) is suported by ASP, but not every function will be available. For example, you cannot use the MsgBox function, since the script runs on a web server, not a PC, thus MsgBox makes no sense in that context.
VBScript can also run client-side, but only on MSIE. When running client-side, MsgBox works fine.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.