PDA

Click to See Complete Forum and Search --> : Is there a way to call a function......!!!


sebs
Nov 7th, 2000, 08:38 AM
Is there a way to call a function that reside on another
asp page, even if i did'nt go on this page!

Serge
Nov 7th, 2000, 09:51 AM
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):

<%
Function MyFunction(Paramater)
MyFunction = CInt(Parameter) * 5
End Function
%>


Then in your other page you can do something like this

<%@ Language=VBScript %>
<!--#include file=MyInclude.asp-->

<%
Dim intMyValue

intMyValue = MyFunction(5)
%>