Results 1 to 2 of 2

Thread: Is there a way to call a function......!!!

  1. #1

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Unhappy

    Is there a way to call a function that reside on another
    asp page, even if i did'nt go on this page!

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    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):
    Code:
    <%
        Function MyFunction(Paramater)
            MyFunction = CInt(Parameter) * 5
        End Function	
    %>
    Then in your other page you can do something like this
    Code:
    <%@ Language=VBScript %>
    <!--#include file=MyInclude.asp-->
    
    <%
        Dim intMyValue
    
        intMyValue = MyFunction(5)
    %>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width