Specify TypeName as the same UserControl the object data source is created in

Last post 12-07-2007 10:35 AM by nick5454. 0 replies.

Sort Posts:

  • Specify TypeName as the same UserControl the object data source is created in

    12-07-2007, 10:35 AM
    • Member
      193 point Member
    • nick5454
    • Member since 02-07-2004, 1:06 AM
    • Posts 183

    I have the following line:

    <asp:ObjectDataSource id="ObjectDataSource1" runat="server" SelectMethod="GetMembers" TypeName="ASP.controls_memberselection_ascx.MemberSelection">

     

    I am trying to call a Getmembers function within the same usercontrol.

    I checked out full name under the type:

    this.GetType().FullName =  "ASP.controls_memberselection_ascx"

    and the User Control is called memberSelection

     

    so I tried all kinds of combinations. How do I find the exact name to use for the type name attribute in the objectdatasource control.

     I had the type name pointing to a business object class and it worked so I know the actual function is error free.

     

    any ideas?

Page 1 of 1 (1 items)