Is there a way to call a function that reside on another
asp page, even if i did'nt go on this page!
Printable View
Is there a way to call a function that reside on another
asp page, even if i did'nt go on this page!
Nope, what you can do is to create an include file that will have your function.
Here is how the include file may look like (assume that this page is called MyInclude.asp):
Then in your other page you can do something like thisCode:<%
Function MyFunction(Paramater)
MyFunction = CInt(Parameter) * 5
End Function
%>
Code:<%@ Language=VBScript %>
<!--#include file=MyInclude.asp-->
<%
Dim intMyValue
intMyValue = MyFunction(5)
%>