Click here to Skip to main content
15,881,811 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, i tried to add datepicker inside the content place holder ,but its works fine and all the date fields having more spaces,the last column fields which are comes into outside the calendar..

How can i solve this , Please help me

my code is below
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
XML
<script src="../../jquery/jquery.min.js" type="text/javascript"></script>
  <script src="../../jquery/jquery-ui.min.js" type="text/javascript"></script>
<link href="../../jquery/jquery-ui.css" rel="Stylesheet" type="text/css" />

<script type="text/javascript">
        $(function () {
            $("[id$=txtDate]").datepicker({
             changeYear: true,
             changeMonth:true,
             dateFormat: "mm/dd/yy",
              offset: [5,30],
              "position": "relative",


            });
        });
 </script>

XML
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">

<asp:TextBox ID="txtDate" runat="server">
Posted
Updated 13-May-15 18:41pm
v3

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