locked
Change calendar title text RRS feed

Answers

  • User-1174608757 posted

    Hi Metaferia

    As far as I know ,It seems only two formats can be changed for month text in Calendar,so you couldn't change the content of title directly.If you want to change the calendar control title content dynamically,I suggest you to use Jquery to get the value of Title and change it. Else if you want to show the data in code behind,I suggest you to use Ajax.Here is a Work Round,I hope it will help you.
    Calendar.aspx:

    <head runat="server">
        <script src="../Scripts/jquery-3.0.0.js"></script>
        <title></title>
        <script>
    
            $(function () {             
                 var customerId = $("#Calendar1 tr").find("td").eq(2).html("What you want");                
            })
    
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <asp:Calendar ID="Calendar1" ShowTitle="true" runat="server"></asp:Calendar>
            </div>
        </form>
    </body>

    Best Regards,

    WeiZhang

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 14, 2018 6:09 AM