If your using visual studio 2008 or 2005, you need to uncheck the box in the
ObjectDataSources "Choose your business object" window that says to only
show data objects. I forget what exactly the text on the checkbox is, but
you would know it when you saw it. If you uncheck the box, then all objects
in the project and its dependencies will show up in the drop down. The other
alternative is to use custom attributes (between [] just above the class).
www.asp.net/leearn has a good data access tutorial series that explains how
this works with data sources and how to set it up right. I go back to them a
lot when I need a little help here and there too.
"Paul S" <Pa***@discussions.microsoft.comwrote in message
news:E5**********************************@microsof t.com...
>
Hi
I have created a collection of business objects in a seperate dll, which I
have then added to my web project. However it does not show up in list of
Website Data Sources.
I need to Data Source to be able to design my Report (MS Reporting)
I have added a ObjectDataSource to a page
<asp:ObjectDataSource ID="ObjectDataSource3" runat="server"
SelectMethod="GetWinners"
TypeName="GolfStore.Bll.MensSection.PinCollection" >
<SelectParameters>
<asp:Parameter Name="EventId" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
and calls a stored proc in the database via the GetWinners method - it
works
- I've checked it using the SQL Profiler.
What do I have to do to make my collection show up in the Website Data
Source list.