Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Probably a daft question but
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Probably a daft question but

 Post Reply Post Reply
Author
Scott07 View Drop Down
Groupie
Groupie


Joined: 04 July 2002
Location: United Kingdom
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scott07 Quote  Post ReplyReply Direct Link To This Post Topic: Probably a daft question but
    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.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.