Article

JQuery DatePicker in Asp.net Using Javascript

18 Jun 2015 Kamal Pratap
1 Comments 1834 Views



Here we explain how to set jquery datepicker on textbox in asp.net. Is is easiest way to enter date in a valid date format.

JQuery DatePicker in Asp.net Using Javascript

Asp.Net:

<!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>jQuery UI Datepicker in Asp.Net</title>
    <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <script src="//code.jquery.com/jquery-1.10.2.js"></script>
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
    <script>
        $(function () {
            $("#datepicker").datepicker();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        Date:
        <asp:TextBox ID="datepicker" runat="server"></asp:TextBox>
    </div>
    </form>
</body>
</html>

 

Kamal Pratap

I have 6+ years experience in .Net technologies like Asp.Net, C#, WCF, Web Services, SQL Server, Ajax, LinQ. Currently I am working in Netcarrots Loyalty Services as a Software Developer.

Comments

No coments found to display!

Leave a Comment