thomas455
asked on
Ajax calendar distorted
i made used of an ajax calendar in asp.net it was working well until just now where it is distorted.
I check in an old back up and its still working fine there.
i do not recall changing anything
Any idea about what is causing this issue?
Good calendar
Distorted calendar
I check in an old back up and its still working fine there.
i do not recall changing anything
Any idea about what is causing this issue?
Good calendar
Distorted calendar
<td class="auto-style2"><asp:TextBox ID="txtDateBooking" runat="server" Visible="true"></asp:TextBox><asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDateBooking" OnClientDateSelectionChanged="checkDate" Format="dd-MM-yy"></asp:CalendarExtender>
<%-- <asp:CompareValidator ID="cfvDOB" ControlToValidate="txtDateBooking" Type="Date" Operator="LessThan"
ErrorMessage="(DoB cannot be within the last 18 years)" Display="Dynamic" SkinID="fielderror"
runat="server"></asp:CompareValidator>--%>
<script type="text/javascript">
function checkDate(sender, args) {
if (sender._selectedDate < new Date()) {
alert("You cannot select a day earlier than today!");
sender._selectedDate = new Date();
// set the date back to the current date
sender._textbox.set_Value(sender._selectedDate.format(sender._format))
}
}
</script></td>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use a service like www.diffnow.com to compare old code and new code for any differences
do you have a test link
ASKER
Got it, was a cssclass i called from bootstrap. thx