I am having a problem with getting the maskededitextender to work on a gridview when editing. the insert part works just fine. It is throwing a javascript error. "Microsoft JScript runtime error: 'undefined' is null or not an object" if i ignore through the error it displays the time correctly but the time blanks out. if i just continue the entire text box clears out and only shows the mask I inserted the code below
<asp:TemplateField HeaderText="Close Time">
<EditItemTemplate>
<asp:TextBox ID="txtCloseTime" Width="90%" runat="server" Text='<%# Eval("closetime") %>' Height="16px"></asp:TextBox>
<asp:MaskedEditExtender ID="txtCloseTime_MaskedEditExtender" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" TargetControlID="txtCloseTime" InputDirection="RightToLeft" ClearMaskOnLostFocus="true" Mask="99/99/9999 99:99" AutoComplete="true" MaskType="DateTime" AcceptAMPM="true" runat="server"></asp:MaskedEditExtender>
<asp:MaskedEditValidator ID="txtCloseTime_MaskedEditValidator" runat="server" ControlExtender="txtCloseTime_MaskedEditExtender" ControlToValidate="txtCloseTime" IsValidEmpty="False" EmptyValueMessage="*required " InvalidValueMessage="Close time is invalid" ValidationGroup="groupone" Font-Size="XX-Small"/>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtNewCloseTime" Width="80%" runat="server" Height="16px"></asp:TextBox>
<asp:MaskedEditExtender ID="txtNewCloseTime_MaskedEditExtender" runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" TargetControlID="txtNewCloseTime" InputDirection="RightToLeft" Mask="99/99/9999 99:99" AutoComplete="true" MaskType="DateTime" AcceptAMPM="true"> </asp:MaskedEditExtender>
<asp:MaskedEditValidator ID="txtNewCloseTime_MaskedEditValidator" runat="server" ControlExtender="txtNewCloseTime_MaskedEditExtender" ControlToValidate="txtNewCloseTime" IsValidEmpty="False" EmptyValueMessage="*required " InvalidValueMessage="Close time is invalid" ValidationGroup="grouptwo" Font-Size="XX-Small"/>
</FooterTemplate>
<ItemTemplate>
<asp:Label ID="lblCloseTime" Width="60%" runat="server" Text='<%# Bind("closetime") %>'> </asp:Label>
</ItemTemplate>
<FooterStyle />
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField