Class declaration

  • Thread starter Thread starter Doug Stiers
  • Start date Start date
D

Doug Stiers

I have an ASP.Net 1.1 (VB) application where I have several usercontrols,
one is
called DetailLine.

Dim ucLine As DetailLine ' this code works fine

In converting this application to ASP.Net 2.0 I run into this problem. Now
this line of code wont compile:

Dim ucLine As DetailLine

And I dont see any of my classes in Intellisense, like the usercontrols and
other objects in the project. I'm obviously still learning the 2.0
framework, am I not declaring this class correctly? Here's the class
declaration:

Public Class DetailLine
Inherits System.Web.UI.UserControl

Public Sub DoSomething()

End Sub
End Class


Thanks for your help in advance, DougS
 
I have an ASP.Net 1.1 (VB) application where I have several usercontrols,
one is
called DetailLine.

Dim ucLine As DetailLine ' this code works fine

In converting this application to ASP.Net 2.0 I run into this problem. Now
this line of code wont compile:

Dim ucLine As DetailLine

And I dont see any of my classes in Intellisense, like the usercontrols and
other objects in the project. I'm obviously still learning the 2.0
framework, am I not declaring this class correctly? Here's the class
declaration:

Public Class DetailLine
Inherits System.Web.UI.UserControl

Public Sub DoSomething()

End Sub
End Class

Thanks for your help in advance, DougS

Perhaps if you told us what the error is?

Is the assembly that contains your class referenced? Have you
imported the namespace for your class? You need to provide more
information.

Chris
 
It's all part of the same assembly. In the old 1.1 app I could reference
AssmeblyName.ClassName, is there something I need to do to give my web app
an NameSpace?
 
Back
Top