Mayfield2268
Active member
- Joined
- Feb 24, 2003
- Messages
- 30
I have created a class in Web Matrix and Im trying to call it from a .aspx page. Here is the code for the class...
Imports System
Namespace sqlClass
Public Class sql
Public Sub New()
End Sub
End Class
End Namespace
I get the following error when I try to declare an instance of this class in my .aspx page ...
Compiler Error Message: BC30002: Type sql is not defined.
Source Error:
Line 6:
Line 7: Sub Button1_Click(sender As Object, e As EventArgs)
Line 8: Dim sqlVB as New sql()
Line 9:
Line 10: End Sub
I have also tried adding a import namespace as well as removing the Namespace code from the class.
Does anyone have any suggestions as to why this error is occurring.
Thanks
Imports System
Namespace sqlClass
Public Class sql
Public Sub New()
End Sub
End Class
End Namespace
I get the following error when I try to declare an instance of this class in my .aspx page ...
Compiler Error Message: BC30002: Type sql is not defined.
Source Error:
Line 6:
Line 7: Sub Button1_Click(sender As Object, e As EventArgs)
Line 8: Dim sqlVB as New sql()
Line 9:
Line 10: End Sub
I have also tried adding a import namespace as well as removing the Namespace code from the class.
Does anyone have any suggestions as to why this error is occurring.
Thanks