473,387 Members | 1,502 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,387 software developers and data experts.

Getting content from three different tables

Hi
I really really hope someone can help me out with whis - since Im fearly new in this world.

I want to build up a navigation with elements from my main category table. Then, for each kategory there may be one ore more products with a title defined in another table. The relations between my products and main kategory is defined in a third table wich only contains the id from the two other tables.

Now, I managed to collect out the content from my main kategory table and listed this out on my site.
I created a dataReader object and uset a repeater control:

Dim strConn As String
strConn = "Provider= etc........"
strSQL = "Select * From tbl_ProduktGrupper"
objConn = New OleDbConnectio(strConn)
objConn.Open()

Dim objDataAdapter As New OleDbDataAdapter(strSQL, strConn)
objDataAdapter.Fill(dsDataSet)
PGRepeater.DataSource = dsDataSet.Tables(0).DefaultView
PGRepeater.DataBind()
objConn.Close()

Now: this result is connected to my RepeaterControl with the name PGRepeater
So: my question = where do I go next? What is the easiest/simplest way to do a new look up in my other tables to list out the title of the products that belong to eatch of the main kategories - and relate this Product title to correct Kategory??

This is sort of what I want the result to look like:
Main kategory 1
- Product Title A
- Product Title B
- Product Title C
- Product Title D
Main kategory 2
- Product Title A
- Product Title B
Main kategory 3
Main kategory 4
- Product Title A
- Product Title B
- Product Title C
- Product Title D
- Product Title E

phu! Anyone outthere please!! ??

Nov 18 '05 #1
2 890
"jatzzi" <ja****@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
Hi
I really really hope someone can help me out with whis - since Im fearly new in this world.
I want to build up a navigation with elements from my main category table.

Then, for each kategory there may be one ore more products with a title
defined in another table. The relations between my products and main
kategory is defined in a third table wich only contains the id from the two
other tables.

You can add your other two tables to the dataset, along with the relations
between them. I believe you will then be able to bind a nested repeater
through the relations, to the table with the titles, and it will only get
those titles which correspond to the current category.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2
hmmm...ok
But how do I list the content out on my aspx page. Do I have
to make one repetaer control for each element I want to show on the page? Like one RepeterConrol for the Kategory Name form this table and one for the title from the Product table. And how do I manage to nest this correctly??

"John Saunders" wrote:
"jatzzi" <ja****@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
Hi
I really really hope someone can help me out with whis - since Im fearly

new in this world.

I want to build up a navigation with elements from my main category table.

Then, for each kategory there may be one ore more products with a title
defined in another table. The relations between my products and main
kategory is defined in a third table wich only contains the id from the two
other tables.

You can add your other two tables to the dataset, along with the relations
between them. I believe you will then be able to bind a nested repeater
through the relations, to the table with the titles, and it will only get
those titles which correspond to the current category.
--
John Saunders
johnwsaundersiii at hotmail

Nov 18 '05 #3

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

Similar topics

17
by: John Hunter | last post by:
I have a largish data set (1000 observations x 100 floating point variables), and some of the of the data are missing. I want to try a variety of clustering, neural network, etc, algorithms on the...
5
by: Brandons of mass destruction | last post by:
Ok, I work for a small newspaper thats looking to translate our content to the web. XML sounds like a good way to do this, but i'm a little confused. Is it possible to have <b> and <i> tags in...
3
by: Michael Glass | last post by:
I'm working on an ASP.Net web app using VS2005 and the .Net 2.0 framework, and I have a serious problem with the page I'm currently working on. The page has, among other things, two FormViews and a...
7
by: Marcel Stör | last post by:
I want to overhaul http://www.s-tisch.ch/. The layout is fine IMHO and I need to keep it that way. The implementation, however, is totally ugly. I intend to replace all frames with a CSS-based...
7
by: cov | last post by:
I have a php query where I'm attempting to pull data from 3 different tables between a php form and mysql db. I had hoped early on to use a unique identifier to help ensure referential integrity...
2
by: einsson | last post by:
I face a problem, please help. Error I hit when there are three combobox. Please refer the code with italic characters. this.comboBox1.DataSource = this.dataSet11.Tables;...
1
by: kigoobe | last post by:
Hi friends, I'm having three queries that works perfectly ... SELECT ib.id as id, ib.titre as title, ib.date_expire as date_fin, ib.created_at as date_creation, eb.content as content, '' FROM...
18
by: vjayis | last post by:
hi i have a php page in which i have included few tabs links like games, news,entertainment etc., when i click the tablink an ajax page is loaded below. In that ajax page several...
0
by: Marjeta | last post by:
I have 3 tables with 6 different date fields: - "problems" with creation_date - "funding_requests" with request_date and 3 different approval dates - "purchase_orders" with po_date I would like...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...

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.