Type ... is not defined, WHY??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Søren M. Olesen

    #1

    Type ... is not defined, WHY??

    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



  • rowe_newsgroups

    #2
    Re: Type ... is not defined, WHY??

    Here's a similar thread that may help.



    Thanks,

    Seth Rowe


    Søren M. Olesen wrote:
    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

    Comment

    Working...