troubleshooting Question

Empty Business Object when Configure ObjectDataSource

Avatar of cdemott33
cdemott33Flag for United States of America asked on
.NET ProgrammingASP.NETVisual Basic.NET
4 Comments1 Solution1277 ViewsLast Modified:
I would like to bind an ObjectDataSource control in my page to a method of one of the existing classes in my App_Code folder. However, when I go "Configure Data Source..." for this control, the wizard shows an empty drop-menu for business object, and I can't choose any of my classes.

I'm not sure how to fix this.  
Here's my class...

Imports Microsoft.VisualBasic
Imports ReportDALTableAdapters

<System.ComponentModel.DataObject()> _
Public Class Report_ResultsBLL

    Private _adaptor As QuestionnaireResultsTableAdapter = Nothing
    Protected ReadOnly Property Adaptor() As QuestionnaireResultsTableAdapter
            If _adaptor Is Nothing Then
                _adaptor = New QuestionnaireResultsTableAdapter()
            End If

            Return _adaptor
        End Get
    End Property

    <System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, True)> _
    Public Function GetAttendeeVisitorRoleCount(ByVal EventID As Integer, ByVal QuestionID As Integer) As ReportDAL.QuestionnaireResultsDataTable
        Return Adaptor.GetAttendeeVisitorRoleCount(EventID, QuestionID)
    End Function
End Class
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros