Class declaration

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
 
C

Chris Dunaway

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
 
D

DougS

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top