Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/09/2008, 07:51
eldersoto
 
Fecha de Ingreso: agosto-2008
Mensajes: 11
Antigüedad: 15 años, 8 meses
Puntos: 0
BC30451: Name 'Ctest' is not declared

Hola a todos, por mas que lo intento aún no he podido resolver mi
problema, voy a describir mis pasos quizas alguien pueda indicarme la
luz al final del camino.
1- Creo la Clase:
Imports Microsoft.VisualBasic
Namespace SoftWorks.Utilitidades
Public Class Ctest
Public Sub New()
End Sub
Public Shared Function StringConexion() As String
Dim strConexion As String
strConexion = "Helloo Mundo"
Return strConexion
End Function
End Class
End Namespace
2-Importo el Namespace
2.1 Imports SoftWorks.Utilitidades
2.2 <% @Import Namespace="SoftWorks.Utilitidades" %>
3- Llamo a la función desde el evento load
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Response.Write(Ctest.StringConexion.ToString)
End Sub
Siempre me envía el mensaje de error:
BC30451: Name 'Ctest' is not declared
Gracias por sus opiniones
Don Quijote de Nicaragua.
Elder Soto.