HOME | DD

Published: 2005-09-20 06:29:02 +0000 UTC; Views: 199; Favourites: 1; Downloads: 14
Redirect to original
Description
ASP Syntax:-The Response Object
The Write method of the ASP Response Object is used to send content to the browser. For example, the following statement sends the text "Hello World" to the browser:
<%
response.write("Hello World!")
%>
VBScript:-
You may use different scripting languages in ASP files. However, the default scripting language is VBScript:
<%
response.write("Hello World!")
%>
The example above writes "Hello World!" into the body of the document.
JavaScript:-
To set JavaScript as the default scripting language for a particular page you must insert a language specification at the top of the page:
<%@ language="javascript"%>
<%
Response.Write("Hello World!")
%>
Note: Unlike VBScript - JavaScript is case sensitive. You will have to write your ASP code with uppercase letters and lowercase letters when the language requires it.
Other Scripting Languages
ASP is shipped with VBScript and JScript (Microsoft's implementation of JavaScript). If you want to script in another language, like PERL, REXX, or Python, you will have to install script engines for them.
Important: Because the scripts are executed on the server, the browser that displays the ASP file does not need to support scripting at all!
Related content
Comments: 2
superpepy [2005-09-20 17:54:28 +0000 UTC]
Nice I'll continue learning here, I guess xD.
This one is too short for a serious tutorial though, you should've explained some more.
👍: 0 ⏩: 1
daniGrafix In reply to superpepy [2005-09-20 18:09:29 +0000 UTC]
thanx, you like it.... i just tried.. that might be someone want to continue asp.. so, i just put less.. material..
actually i'm programmer.. working from last 3-4 years.. anyway..
it will be with more explanation in Next..
👍: 0 ⏩: 0