JQuery DatePicker in Asp.net Using Javascript
18 Jun 2015
Kamal Pratap
Comments
2884
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.

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>