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?)
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" %>
Member
21 Points
97 Posts
Filter template 'QueryableFilterUserControl' could not be found
Apr 22, 2013 07:32 AM|pradeepmanne|LINK
Hi,
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
Pradeep kumar
All-Star
17916 Points
5681 Posts
MVP
Re: Filter template 'QueryableFilterUserControl' could not be found
Apr 22, 2013 05:13 PM|sjnaughton|LINK
Hi Can you post header code from your new filter and one of the default filters please, as I suspect a namespace issue :)
Always seeking an elegant solution.
Member
21 Points
97 Posts
Re: Filter template 'QueryableFilterUserControl' could not be found
Apr 23, 2013 02:56 AM|pradeepmanne|LINK
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="" />
</asp:DropDownList>
Pradeep kumar