Link to home
Start Free TrialLog in
Avatar of thomas455
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
User generated image
Distorted calendar
User generated image
 <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>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of zephyr_hex (Megan)
zephyr_hex (Megan)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shaun Vermaak
Use a service like www.diffnow.com to compare old code and new code for any differences
do you have a test link
Avatar of thomas455
thomas455

ASKER

Got it, was a cssclass i called from bootstrap. thx