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.myPro duct
Public Module myUtilities
Public Function myFunc(ByVal ctrl As
myCompany.myPro duct.UserContro ls.myControl) As Boolean
ctrl.value="tes t"
End Function
End Module
End Namespace
Under: Customer/UserControls
Namespace myCompany.myPro duct.UserContro ls
Partial Class myControl
Inherits System.Web.UI.U serControl
Public Property value() As Object
Get
End Get
Set(ByVal value As Object)
End Set
End Property
End Class
End Namespace
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.myPro duct
Public Module myUtilities
Public Function myFunc(ByVal ctrl As
myCompany.myPro duct.UserContro ls.myControl) As Boolean
ctrl.value="tes t"
End Function
End Module
End Namespace
Under: Customer/UserControls
Namespace myCompany.myPro duct.UserContro ls
Partial Class myControl
Inherits System.Web.UI.U serControl
Public Property value() As Object
Get
End Get
Set(ByVal value As Object)
End Set
End Property
End Class
End Namespace
Comment