 |
interactive | editorial | code | resource |
|
|
Single tables |
Multiple tables |
Advanced Searching |
Demonstration using the Northwind database included with SQL server |
Advanced Demonstrations using QuickAdmin v1.1 |
|
Demonstrations > Part 2 > One-Many
One-Many
One-many relationships
To illustrate how to set up One-many relationships with QuickAdmin, we'll use
the example of an orders table.
We'll also introduce the simple search functionality here. This search box is
set up to search for orders by either Order ID or Company.
Leave the box blank and click Search in order to return all orders:
|
|
Here's the code that defines this search:
<SimpleSearch>
<QuickAdmin:Local LocalField=OrderID Runat=server />
<QuickAdmin:One2Many Quotes=true LocalField=CustomerID ForeignTable=Customers ForeignKeyField=CustomerID ForeignDataField=CompanyName Runat=server />
<QuickAdmin:One2Many Quotes=true Title="Customer Company" LocalField=CustomerID ForeignTable=Customers ForeignKeyField=CustomerID ForeignDataField=CompanyName Runat=server />
</SimpleSearch>
|
Demonstrations > Part 2 > One-Many | |
|
Here's a representation of the database:  |
|
|
 |
You are not logged in. |
Quick search:
|
This site is part of the allasp.net network. Take a look at our great ASP.NET components: dbcombo.net Web combo-box that autocompletes values from the server as you type! Great for selecting from long lists. quickadmin.net Professional database admin pages in minutes rather than days! - fully ranked search / view / add / edit etc. imageadmin.net Web-based image upload manager. Lets you set criteria on uploaded images to enforce consistency. |
|