Thanks,
That solve one of my problems.
Use this approach when an asp:textbox is within a masterpage.
This is an example of the approach:
<%-- jquery Datepicker
------------------------------------- --%>
<link href="Styles/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" />
<script src="Scripts/jquery-1.4.2.js" type="text/javascript"></script>
<script src="Scripts/datepicker.js" type="text/javascript"></script>
<script src="Scripts/widgets.js" type="text/javascript"></script>
<script src="Scripts/core.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("input[id$=txtDatepicker]").datepicker({
changeMonth: true,
changeYear: true
});
});
</script>
.......... some HTML ....... then the asp:textbox
<asp:TextBox ID="txtDatepicker" runat="server" Text="mm/dd/yyyy"></asp:TextBox>
......... some HTML