Include a file in ASP.NET

0

Good afternoon, I try to make an include in my aspx file. but in doing so, he puts it in the form of a comment.

<%@ Page Language="VB" Explicit="True" Debug="true"%>
<!-- #INCLUDE FILE="lib-login.aspx" -->
<!-- #INCLUDE FILE="lib-sportcity.aspx" -->

The problem is the one I describe below, I have the following method in "lib-sportcity.aspx":

  Public Function SCC_ObtenConfiguracionClub(
                                   ByVal sDbServidores As String,
                                   ByVal sIP As String,
                                   ByRef sDBConexion As String,
                                   ByRef sDBSolomon As String,
                                   ByRef sClubId As String,
                                   ByRef sClubName As String
) As Boolean

And I try to access it in "login.aspx":

If SCC_ObtenConfiguracionClub(
                  Application("ConexionServidores"),
                  Request.ServerVariables("LOCAL_ADDR"),
                  sConexion,
                  sDBSolomon,
                  sClubId,
                  sClubName)

But it marks me an error when trying to access it, the same thing happens to me with another page.

Could you help me? Thank you very much.

    
asked by Guillermo Ricardo Spindola Bri 03.08.2017 в 17:24
source

1 answer

0

Try that:

<%@ Import Namespace="NAMESPACE" %>

where NAMESPACE will be in the namespace where you have the method hosted.

    
answered by 03.08.2017 в 18:50