In our ASP tutorial, every example shows the hidden ASP source code. This will make it easier for you to understand how it works.
Write Output to a Browser
An ASP file normally contains HTML tags, just like an HTML file. However, an ASP file can also contain server scripts, surrounded by the delimiters <% and %>.Server scripts are executed on the server, and can contain any expressions, statements, procedures, or operators valid for the scripting language you prefer to use.
The response.write Command
The response.write command is used to write output to a browser. The following example sends the text "Hello World" to the browser:Examples::-
<html>
<body>
<%
response.write("Hello World!")
%>
</body>
</html>
There is also a shorthand method for the response.write command. The following example also sends the text "Hello World" to the browser:
<html>
<body>
<%
="Hello World!"
%>
</body>
</html>
No comments:
Post a Comment