Filter template 'QueryableFilterUserControl' could not be found RRS feed

  • Question

  • User-43865706 posted


    Added a new user control, xxxx.ascx, to the ~/DynamicData/Filters folder of Dynamic Data web application.

    In the code-behind file, when i  change the base class from UserControl to QueryableFilterUserControl.

    its giving Error    1    The type or namespace name 'QueryableFilterUserControl' could not be found (are you missing a using directive or an assembly reference?)  

    i used the system.web.dynamicdata namespace also

    Monday, April 22, 2013 7:32 AM

All replies

  • User-330204900 posted

    Hi Can you post header code from your new filter and one of the default filters please, as I suspect a namespace issue :)

    Monday, April 22, 2013 5:13 PM
  • User-43865706 posted

    My new Filter Code

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="text.ascx.cs" Inherits="WebApplication4.DynamicData.Filters.text" %>
    <asp:TextBox runat="server" ID="textBox" OnTextChanged="TextBox_TextChanged" />

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.DynamicData;
    namespace WebApplication4.DynamicData.Filters
        public partial class text : System.Web.UI.UserControl
            protected void Page_Load(object sender, EventArgs e)


    Default Filter Code

    <%@ Control Language="C#" CodeBehind="FilterUserControl.ascx.cs" Inherits="WebApplication4.FilterUserControl" %>

    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" EnableViewState="true" CssClass="droplist">
        <asp:ListItem Text="All" Value="" />

    Tuesday, April 23, 2013 2:56 AM