Type ... is not defined, WHY??

S

Søren M. Olesen

Hi

In my website I have a module, placed under App_Code with a number of
utility functions. For one of these functions I'm trying to pass a
usercontrol as an argument, however I keep getting 'Type myControl is not
defined' ... how come??, and how do I solve it??


Under App_Code:

Namespace myCompany.myProduct
Public Module myUtilities
Public Function myFunc(ByVal ctrl As
myCompany.myProduct.UserControls.myControl) As Boolean
ctrl.value="test"
End Function
End Module
End Namespace


Under: Customer/UserControls

Namespace myCompany.myProduct.UserControls
Partial Class myControl
Inherits System.Web.UI.UserControl
Public Property value() As Object
Get
End Get
Set(ByVal value As Object)
End Set
End Property
End Class
End 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