Saturdays go missing in the ASP.NET AJAX Calendar Extender

In the ASP.NET forums, I have seen many users complaining about the calendar display while using the ASP.NET AJAX CalendarExtender. The issue was particularly found in IE7 where Saturdays were not displayed in the calendar.

A simple solution that I had adopted sometime back was to set the padding and margin of the CalendarExtender to 0px;

The solution is shown over here:

<html xmlns="">

<head runat="server">


    <style type="text/css">

    .calFixIE *








    <form id="form1" runat="server">


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


        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

        <cc1:CalendarExtender ID="CalendarExtender1" TargetControlID="TextBox1"

        Format="dd/MM/yyyy" runat="server">






Will you give this article a +1 ? Thanks in advance

About The Author

Suprotim Agarwal
Suprotim Agarwal, ASP.NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He is the Editor of a Developer Magazine called DNC Magazine. He has also written two EBooks 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook

Follow him on twitter @suprotimagarwal

No comments: