YouTip LogoYouTip

Asp Procedures

# ASP Sub Procedures * * * In ASP, you can call JavaScript sub procedures from VBScript, and vice versa. * * * ## Sub Procedures ASP source code can contain sub procedures and functions: ## Example <% sub vbproc(num1,num2) response.write(num1*num2) end sub %>

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

[Try it Yourself Β»]( By placing the <%@ language="_language_" %> line above the tag, you can use another scripting language to write sub procedures or functions: ## Example <%@ language="javascript" %> <% function jsproc(num1,num2) { Response.Write(num1*num2) } %>

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

← Asp InputformsAsp Variables β†’