Sure,
I have two table involved here one name Courses and the other Scheduled_Classes
Courses has 4 columns
course_number(PK, varchar(50) not null)
course_name (varchar(100), not null)
course_length (tinyint, null)
course_category (FK, nvarchar(50), null
Scheduled_Classes has 5 columns
sched_num (PK,smallint,not null)
class_date (smalldatetime,not null)
room_num (FK,smallint,not null)
eng_id (FK, smallint, null)
course_number (FK, varchar(50), not null)
Using the default ListDetails.aspx everything works great. I get 3 drop down filter lists.
One for Instructor coming from the eng_id FK.
One for Room coming from the room_num FK
One from Course coming from the course_number FK
The problem is column that it is picking to use for the filter is the course_name from courses table and I want it to filter on the course_number
So I was trying to create a custom page that would do this.
Here is the source code for my custom ListDetails.aspx
"Label1" runat="server" Text='<%# Eval("DisplayName") %>' AssociatedControlID="DynamicFilter$DropDownList1" />
"server" ID="DynamicFilter" DataField="course_Number" OnSelectedIndexChanged="OnFilterSelectedIndexChanged"/>
Thanks for your help
Dave