Using the jQuery DatePicker within an asp.net update panel (on the initial page load the DatePicker doesn’t show–only shows after page refresh)

If the jQuery DatePicker control is not displaying on the initial load but displays after a page refresh try  switching from jQuery’s method of determining when the DOM is ready:

[javascript light=”true”]

    $(document).ready(
        function () {
            $(‘#TextBox1’).datepicker();
        }
    );

[/javascript]

to
[javascript light=”true”]

    function pageLoad() {
        $(‘#TextBox1’).datepicker();
    }

[/javascript]