custom-controlsasp.net-customcontrol

How to Create custom control in asp.net with jquery


Please can any body provide the code example. how to embedded jquery datapicker in asp.net textbox.. Mean how do i create this using asp.net control with jquery.


Solution

  • If you are having a problem associating a ASP.NET Textbox for use with the jQuery DatePicker, then this should help:

    <script>
        $(function() {
            $("<%=Date.ClientID %>").datepicker();
        });
    </script>
    <div class="demo">
         <p>Date: <asp:TextBox ID="Date" runat="server" /></p>
    </div>