I have a DetailsView with a bunch of EditItemTemplates. One of them has a text box that accepts dates. In order to make the form more user friendly I wanted to add an Ajax toolkit calendar control so the user can pick a date from the calendar. I keep getting an error when trying to load the page.
Parser Error Message: Unknown server tag 'ajc:Calendar'.
My register tag is correct.
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajc" %>
My EditItemTemplate looks like this. Nothing fancy.
<EditItemTemplate>
<asp:TextBox ID="txtGrantedDate" runat="server" Text='<%# Bind("GrantedDate") %>' />
<ajc:Calendar PopupPosition="Right" runat="server"
TargetControlID="txtGrantedDate"
Format="MMMM d, yyyy" SelectionMode="Day"
PopupButtonID="imgGrantedDate" ></ajc:Calendar>
<asp:Image ID="imgGrantedDate" runat="server" Width="20px" Height="20px" AlternateText="calendar" ImageUrl="~/Images/calendar.png" />
</EditItemTemplate>
Where might I be going wrong and are ajax controls even allowed in DetailsView controls?