Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Two dropdownlist and two tables...

Thread Tools

Two dropdownlist and two tables...

Posts: n/a
Hi all!
I have a database that has 3 tables:

User, roles and roleUser.
The last one has only two fields, idUser and idRole, they are the
primary key of the table.
When inserting a new row in this table, I want to show two dropdown
lists, one with all the users and one with all the roles in the other
two tables. The problem is I can't figure out how to do this. I tried
with a dataadpter that croos-joins the two table, but this way for
example if I have 3 users and 2 roles I have each role 3 times and each
user 2 times...
Any idea?

Thank you


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DropDownList inside GridView: How to set SelectedIndex for the DropDownList? keithb ASP .Net 1 11-01-2006 05:24 AM
GridView: Filter DropDownList for another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-29-2005 07:44 AM
GridView: Filtr DropDownList from another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-23-2005 01:31 PM
databinding a Dropdownlist to another dropdownlist tshad ASP .Net 8 10-19-2005 10:00 PM
Using a data-bind dropdownlist to populate another data-bind dropdownlist mr2_93 ASP .Net 1 10-02-2005 05:07 PM