473,883 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using related table adapters

I have been searching for a solution to this for a while now and
everything I have found has lead me down the wrong path. Any
assistance you guys could give would be much appreciated.

I would like to bind a control to an object data source control and
get data from related tables.

For example:
Categories (table)
-CategoryID
-CategoryName

Items (table)
-ItemID
-CategoryID
-ItemName

The tables are a one-many from Categories to Items on CategoryID.
My application is ASP.Net (vb.net) 2.0 using table adapters for a data
access layer and classes in a business logic layer. The DAL has a
relationship for the 2 tables.
On this page I would like to display a checkbox list of each item,
grouped together by category name. Category name will be displayed
above the group of items it describes.

I am trying to adapt the approach from this article (which is not
using table adapters):
http://msdn2.microsoft.com/en-us/library/aa478959.aspx

I have bound the top level repeater to a BLL class that returns the
Categories table and fills the Items table. At run-time the items
table is not associated as a child of the Categories table, so I
cannot access it through the object data source.

I am not married to this approach and would appreciate it if anyone
could steer me in the right direction. However, I want to avoid
joining the tables first and working with them that way. I already do
that in areas where it is very appropriate. I can see a lot of
benefits to being able to work with multiple related tables separately
in the BLL and the presentation layer without joining them first.
Thanks!

Jun 19 '07 #1
0 1133

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

Similar topics

1
4493
by: JH | last post by:
I have a comma delimited file and I want to export it to an MS access table already designed with appropriate field names. How do I do this programmatically using VB.NET or C#? Thanks for any help in advance.
2
2848
by: news | last post by:
hi im new in the .net environnement i have a work to do in school im able to display a datagrid using a database in access and im also able to display a datagrid using a database in foxpro 8.0 but i want to display in my browser the both datagrid in the same page, one using access db and the other with foxpro db. how can i integrated the both in the same program?
0
1071
by: Bruce HS | last post by:
I'd like my VB2005 code to be able to pass my WinForm Table Adapter to an ancestor object for processing (for instance doing generic logic about saving). However, it looks like Table Adapters don't have a class of their own. Is it possible to create a function sort of like this? Function Save(TA As TableAdapter, DS As DataSet)
13
7829
by: Jean Paul Mertens | last post by:
Hello, Someone can tell me why I dont get serial port events in a Service, I created a separate Thread to open the port but no events are coming up (the same happens when I use the timer component, using the System.Timers.Timer it works fine) tnx in advance Jean Paul
0
1656
by: billy.murray | last post by:
I have a system which comprises 4 servers (1 server per plant area). Each plant area server has 2 databases (Config<nand Runtime<nwhere <nis the plant area number) and 1 web application which uses these 2 databases (The same web application is deployed on each server). All this works fine, however we also require to have a central server which comrises all 8 database and the web application. The pairs of databases are identical in...
2
2726
by: Simon | last post by:
Hi all, Is it somehow possible to do do batched updates with table adapters in the same way you can with data adapters? I expected the methods to be much the same but apparently not. If it isn't possible can anyone tell me how to do batched updates on a strongly typed datatable? Thanks
0
1705
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I am a .NET newbie, specifically WinForms. I have a simple Winform for which I have a "How To" question: My WinForm app will display data from a FoxPro database, two tables in particular: Patients, and Sessions. There is one record in the Patients table for each patient. The PatientID is the primary key. The sessions table contains all of the visits that all of the patients have made to the lab. There is a one-to-many relation between...
0
1705
by: jonnyc23 | last post by:
Hi I'm using table adapters and have managed to get them working with query parameters but I can't seem to find a way to do something like the following: select NodeId, Time, Data from MyTable where NodeId in (@ParameterArray)
4
3461
by: dgk | last post by:
Should I dispose of table adapters and data tables and rows or do they garbage collect themselves?
0
11141
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10742
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10847
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10415
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9573
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7971
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5797
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4220
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3232
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.