Type ... is not defined, WHY??

  • Thread starter Thread starter Søren M. Olesen
  • Start date Start date
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
 
Back
Top