Write to Output in ASP Example


The block start and end markers (<% ... %>) indicate the start and end of a server side script block. <% and %> are called delimiters. The delimiters enclose server-side script commands of the default scripting language. The default is VBScript unless overridden by IIS. Response.Write int# writes the contents of the string to the window.

Note that the ASP engine executes on the server ONLY code that is within the <% ... %> block markers or enclosed within the <SCRIPT RUNAT=SERVER> and </SCRIPT> tags.


Output:<BR>
<%
Dim int#

int# = 10*10
%>
102 is 
<%
Response.Write intS
%>
, the same as 10 * 10.