473,399 Members | 3,401 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,399 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 2134
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.