Custom FilterTemplate Control

May 27, 2009 at 1:06 PM

Hi Josh,

based on your DateTime_Range.ascx i created a AJAX Control.
In my ..aspx Page i am using the DynamicFilterForm
When i click on the "Clear"-Button
textboxes cMin and cMax doesn not get clear?

<%@ Control Language="vb" AutoEventWireup="false" CodeFile="Ajax_DateTime_Range.ascx.vb"
    Inherits="Ajax_DateTime_Range" %>
<asp:TextBox ID="cMin" runat="server" />
<asp:Image ID="Image_cMin" runat="server" ImageUrl="~/DynamicData/Content/Images/red/filter_date.gif" />
<ajaxToolkit:CalendarExtender ID="cMin_CalendarExtender" runat="server" Enabled="True"
    TargetControlID="cMin" PopupButtonID="Image_cMin" Format="yyyy-MM-dd" /> 
<asp:TextBox ID="cMax" runat="server" />
<asp:Image ID="Image_cMax" runat="server" ImageUrl="~/DynamicData/Content/Images/red/filter_date.gif" />
<ajaxToolkit:CalendarExtender ID="cMax_CalendarExtender" runat="server" Enabled="True"
    TargetControlID="cMax" PopupButtonID="Image_cMax" Format="yyyy-MM-dd"/>

Codebehind ist the same as in DateTime_Range.ascx.vb

Thanks