Print Page | Close Window

Probably a daft question but

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=18135
Printed Date: 29 March 2026 at 4:24am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Probably a daft question but
Posted By: Scott07
Subject: Probably a daft question but
Date Posted: 25 January 2006 at 8:49pm
I have been having problems with some asp.net page, i am quite new to asp.net, but have used normal asp as well as other oop languages for ages (and as far as i can tell asp.net looks like an advanced asp with oop support) anyway, I simpley want to create a catagoryTree object, so I have my .aspx bit of code
< runat=""><%@ Page Language="VB"%>
<%@ Import Namespace="CatTree" %>
Private Sub Page_Load()

'Put user code to initialize the page here
Dim catList as new CatagoryTree()

End Sub

and my CatagoryTree.vb bit of code:
Option Strict Off
Option Explicit On

Imports System
Imports System.Data.SqlClient
Imports System.Data

Namespace CatTree

Public Class CatagoryTree

Private sqlCon As SqlConnection
Private catDR As SqlDataReader
Private sqlCmd As SqlCommand

Public Sub New()
sqlCon = New SqlConnection("blah blah blah")

End Sub

End Class

but every time I run it I get the error
Compiler Error Message: BC30002: Type 'CatagoryTree' is not defined.

Source Error:


Line 5:  	Private Sub Page_Load()
Line 6: 'Put user code to initialize the page here
Line 7: Dim catList as new CatagoryTree()
Line 8: End Sub
Line 9:

Source File: \\Neptune\PlutoIIS\Default.aspx    Line: 7


 I have tried sample files off the net which use the same sort of thing and they all work fine, just this one file I have written I cant seam to get working. Anyway any help would be appriciated.


-------------
http://www.worldsofwar.co.uk - Worlds of War II



Replies:
Posted By: michael
Date Posted: 26 January 2006 at 6:49pm
The page should run without an error except the
< runat="">
you posted in the beginning. That should be scraped.


-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net