News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

The ASP source code can contain procedures and functions

Started by sukishan, Jul 13, 2009, 08:26 AM

Previous topic - Next topic

sukishan

<html>
<head>
<%
sub vbproc(num1,num2)
response.write(num1*num2)
end sub
%>
</head>
<body>

<p>Result: <%call vbproc(3,4)%></p>

</body>
</html> 

Insert the <%@ language="language" %> line above the <html> tag to write the procedure/function in another scripting language:

Example
<%@ language="javascript" %>
<html>
<head>
<%
function jsproc(num1,num2)
{
Response.Write(num1*num2)
}
%>
</head>
<body>

<p>Result: <%jsproc(3,4)%></p>

</body>
</html> 
A good beginning makes a good ending