Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6782281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:43:22+00:00 2026-05-26T16:43:22+00:00

the jquery datepicker is not work in usercontrol through the masterpage….struggling a lot….. masterpage

  • 0

the jquery datepicker is not work in usercontrol through the masterpage….struggling a lot…..

masterpage

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
    <title>Master Page</title>
    <link href="App_Themes/LMSTheme/Style.css" rel="stylesheet" type="text/css" />
    <link type="text/css" rel="stylesheet" href="../App_Themes/LMSTheme/jquery-ui-1.8.16.custom.css" />

    <script type="text/javascript" src="../Scripts/jquery-1.6.2.min.js"></script>

    <script type="text/javascript" src="../Scripts/jquery-ui-1.8.16.custom.min.js"></script>

    <script src="Scripts/ui.datepicker.js" type="text/javascript"></script>

    <style>.Hide{ display:none;}</style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="divcontent">
            <table width="100%">
                <tr height="400px" valign="top">
                    <td width="10px">
                    </td>
                    <td>
                        <asp:ContentPlaceHolder ID="WorkArea" runat="server">
                        </asp:ContentPlaceHolder>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>

This is my usercontrol:

 <%@ Control Language="C#" AutoEventWireup="true" CodeFile="HRApproveSwipeLeave.ascx.cs"
    Inherits="HRApproveSwipeLeave" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<link type="text/css" rel="stylesheet" href="../App_Themes/LMSTheme/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript" src="../Scripts/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="../Scripts/jquery-ui-1.8.16.custom.min.js"></script>
<script src="../../Scripts/ui.datepicker.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
    $(document).ready(function() {
        $('#txtDate').datepicker({changeMonth: true,
            changeYear: true});
    });
</script>

<div class="demo">
    <asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
</div>

This is the aspx while i call thourgh the master page…..

 <%@ Page Language="C#" AutoEventWireup="true" Theme="LMSSkinFile" MasterPageFile="~/MasterPage.master" CodeFile="HRApprovSwipeLeave.aspx.cs" Inherits="HRApprovSwipeLeave" Title="ApproveSwipeLeave"%>
<%@ Register Src="UserControl/HRApproveSwipeLeave.ascx" TagName="HRApproveSwipeLeave" TagPrefix="LMS" %>
<asp:Content ID="LMS_HRApproveSwipeLeave" ContentPlaceHolderID="WorkArea" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode="Conditional">
        <contenttemplate>
    <table>
        <tr>
            <td class="BoldCopy">
                <asp:Label ID="WelcomeUserName" runat="server" Visible="false"></asp:Label>                
            </td>
        </tr>       
    </table>
    <table> 
        <tr>
            <td>                
               <asp:Label ID="ApproveSwipeLeave" Font-Bold=true ForeColor=red runat="server"></asp:Label>      
            </td>
        </tr>  
        <tr>
            <td>                
                <LMS:HRApproveSwipeLeave ID="LMSHRApproveSwipeLeave" runat="server" />  
            </td>
        </tr>
           </table>
       </contenttemplate>
    </asp:UpdatePanel>
</asp:Content>

Note:the jquery time picker when i run through the user control it is not firing at all..if i create a sample aspx and do it is working….i do no where to change the code either in the masterpage or ascx or aspx..for your reference i have send the three.please help to resolve…i am digging a lot with this…..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:43:23+00:00Added an answer on May 26, 2026 at 4:43 pm

    code below is working for me.

    Master Page

    <head runat="server">
    <%--JQUERY--%>
    
    <link rel = "Stylesheet" href ="../jquery-ui-1.8.13.custom/development-bundle/demos/demos.css" />
    <link rel = "Stylesheet" href ="../jquery-ui-1.8.13.custom/development-bundle/themes/base/jquery.ui.all.css" />
    
    <script language="javascript" src="script.js"> </script>
    
    <script src="../Scripts/jquery-1.6.1.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui-1.8.13.custom.min.js" type="text/javascript"></script>
    
    <%--JQUERY--%>
    

    Client Page

    <asp:Content ID="Content1" ContentPlaceHolderID="maincontent" Runat="Server">
        <script type ="text/javascript">
            $(function () {
    
                $("#<%= txtDate.ClientID  %>").datepicker();
    
            });
    
        </script> 
    
            <div id ="divname">
    
                <asp:TextBox ID = "txtDate" runat ="server"></asp:TextBox>
    
            </div> 
        </asp:Content>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My jquery UI datepicker is not showing week numbers, even with the showWeek:true option
I've successfully made JQuery work with Master Pages, but not JQuery UI.My header in
I'm trying to use the jquery datepicker (the ajax control toolkit one will not
I have been trying to make jquery datepicker plugin work on a content page
I am trying to get jquery-ui datepicker to work with highcharts so that a
I'm having trouble getting jquery functions (datepicker and dialog) to work within an jquery
I have a malfunctioning set of jquery datepickers that are only not working since
I am using the jquery datepicker with the timeplugin. This works on every browser
I Download Jquery datepicker from http://jqueryui.com/demos/datepicker/ and use it,know I want to my calndar's
I am using the jquery datepicker ( http://jqueryui.com/demos/datepicker/ ). The datepicker on the demo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.