I have a .NET 3.5 Dynamic Data site that I am now overhauling to make it work under .NET 4. I have managed most of it now (painfully!) but am struggling to get my old custom filters to work.
Under .NET 3.5, the default filter mark-up looked like this:
<asp:FilterRepeater ID="FilterRepeater" runat="server">
<asp:Label runat="server" Text='<%# Eval("DisplayName") %>' AssociatedControlID="DynamicFilter$DropDownList1" />
<asp:DynamicFilter runat="server" ID="DynamicFilter" OnSelectedIndexChanged="OnFilterSelectedIndexChanged" />
<FooterTemplate><br /><br /></FooterTemplate>
This code shows all possible filters above the table; i.e., every column in the table containing a foreign key to another table. I didn't want to see them all, just the one I was interested in, so previously I had this mark-up in my ListDetails.aspx file:
<asp:Label runat="server" Text="Panel" AssociatedControlID="DynamicFilterPanel$DropDownList1" style="padding-left: 20px;" />
<asp:DynamicFilter runat="server" ID="
View Complete Post