473,320 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Business object from referenced dll soesn't show in Website Data S


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.

Jun 27 '08 #1
3 2129
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.

Jun 27 '08 #2
Hi Andy

What you describe is how to configure ObjectdataSource and that works fine,
but my problem is when I open a report in the designer I get a list of
Website DataSource displayed next to the designer - that where I would like
to see my BusinessCollection. I have seen the tutorials you're talking about
and taht also works fine for me. The difference is that the code is a part of
the web project. I have the code in a seperate solution, which i compile into
a dll. I my web project I reference this dll.

Thanks
Paul S
Jun 27 '08 #3
Hi Paul

Did you ever find a solution to this problem, I am having the same issue.

Thanks

Ryan

"Paul S" wrote:
Hi Andy

What you describe is how to configure ObjectdataSource and that works fine,
but my problem is when I open a report in the designer I get a list of
Website DataSource displayed next to the designer - that where I would like
to see my BusinessCollection. I have seen the tutorials you're talking about
and taht also works fine for me. The difference is that the code is a part of
the web project. I have the code in a seperate solution, which i compile into
a dll. I my web project I reference this dll.

Thanks
Paul S
Jul 8 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: ad | last post by:
I have studied buisness layer in http://beta.asp.net/QUICKSTART/util/srcview.aspx?path=~/aspnet/samples/data/GridViewObject.src It separate Author class to Author and AuthorComponent If I...
25
by: Stuart Hilditch | last post by:
Hi all, I am hoping that someone with some experience developing nTier apps can give me some advice here. I am writing an nTier web app that began with a Data Access Layer (DAL), Business...
9
by: Hasan O. Zavalsiz | last post by:
Hi , i am trying to figure out which approach is better to use . let me explain the scenario. i am using the "Nortwind" database . in this database i have "Customers " table .The following is the...
14
by: tshad | last post by:
I am trying to set up a reusable library (business component) that I can use in a bunch of my pages. I built the file and it almost compiles, but I am not sure what I am missing. The vbc...
0
by: Khuzema | last post by:
Dear All, I am using issue tracker architecture and developed business object for my application. Now, in VS Beta 2, I humbly want to know how i can have same feature as dataset, in my business...
4
by: Big Dave | last post by:
Does anyone have suggestions on how to best handle errors in business objects that are part of a business layer? For example: Public Class Person Private _name as string Public Property Name...
3
by: moondaddy | last post by:
I'm wanting to create a bindable list object made up of a list of business classes. I'm writing this in a vb.net 1.1 winforms app and am using a code example by Rocky Lhotka for reference...
0
by: Vendell | last post by:
Join one of Canada's finest business men... Dear entrepreneur colleague: Here is a message from the founder.... Let me introduce myself. My name is Ariel Topf. I am 42 years old and I have...
25
by: Penelope Dramas | last post by:
Hello, I'm in a front of very serious .net redesign/rewrite of an old VB6 application. I had been asked to make it .NET 2.0 and would like to ask couple of questions regarding data access as...
1
by: =?Utf-8?B?UGF1bCBT?= | last post by:
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.