Hello all,
  I created a simple project in order to learn using classes from ASP.NET
(VB).

I created a simple class

Namespace test
  Public Class clsTest
    Public Function ReturnSomething() As String
      Return "something "
    End Function
  End Class
End Namespace


and I use the following ASP.NET Code:
*****************************************************************8
<%@ import namespace="test" %>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="TestClasses.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>WebForm1</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
    <meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema"
      content="http://schemas.microsoft.com/intellisense/ie5";>
  </head>
  <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
    </form>
  </body>
</html>

<% dim oClass as clsTest %>



I get a Compilation Error:  BC30002: Type 'clsTest' is not defined.



Thanks for any help,

William Oliveri
[EMAIL PROTECTED]

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to