Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Iam using MaskedEditExtender for date textbox in model frame( .aspx popup window page). When popup window is loading it is showing a javascript runtime error "Microsoft JScript runtime error: Unspecified error." Below is my code:
ASP.NET
<label style="width:40px">Date:</label>
<asp:TextBox ID="txtDate" CssClass="calendarField" runat="server"></asp:TextBox>
<cc1:CalendarExtender ID="DateCalExtender"  runat="server" TargetControlID="txtDate"
PopupButtonID="imgDate" PopupPosition="Right" CssClass="Calendar"/> 
<asp:LinkButton runat="server" CssClass="calendarButton" ID="imgDate" Text="<img border='0' class='calendarButton' src='Images/coreCalendarIcon.gif'>"></asp:LinkButton>
<cc1:MaskedEditExtender ID="MaskedEditExtender3"  runat="server" TargetControlID="txtDate"
Mask="99/99/9999" OnFocusCssClass="MaskedEditFocus" AutoComplete="false"  önInvalidCssClass="MaskedEditError" MaskType="Date" DisplayMoney="None" AcceptNegative="None" />

But same code working in the normal aspx form.Why it's showing error. Any Idea please?
Posted
Comments
samit kaneriya 24-Feb-14 5:59am    
hi i try this code no problem found

<asp:ScriptManager ID="ScriptManager1" runat="server">

<label style="width: 40px">
Date:</label>
<asp:TextBox ID="txtDate" CssClass="calendarField" runat="server">
<cc1:CalendarExtender ID="DateCalExtender" runat="server" TargetControlID="txtDate"
PopupButtonID="imgDate" PopupPosition="Right" CssClass="Calendar">

<asp:LinkButton runat="server" CssClass="calendarButton" ID="imgDate" Text="<img border='0' class='calendarButton' src='Images/coreCalendarIcon.gif'>">
<cc1:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="txtDate"
Mask="99/99/9999" OnFocusCssClass="MaskedEditFocus" AutoComplete="false" önInvalidCssClass="MaskedEditError"
MaskType="Date" DisplayMoney="None" AcceptNegative="None">
Member 10620368 24-Feb-14 7:23am    
Have you tried on Model frame popup? This is working in normal page but not working in pop

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900