Princee Singhal
Princee Singhal

Reputation: 29

How to add Calender control into Textbox without using ajaxtoolkit

How to add Calender Control into Textbox without using ajaxtoolkit in asp.net.

Upvotes: 0

Views: 13814

Answers (3)

smith269
smith269

Reputation: 135

Try this code ...

CODE:

<html lang="en">
<head>
<meta charset="utf-8" />
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
 <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
 <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
 <link rel="stylesheet" href="/resources/demos/style.css" />
 <script>
   $(function() {
    $( "#datepicker" ).datepicker();
  });
 </script>
</head>
<body>

 <p>Date: <input type="text" id="datepicker" /></p>


 </body>
 </html>

Upvotes: 0

rahul.deshmukh
rahul.deshmukh

Reputation: 590

you can do this using following jquery and code:

 <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
 <script src="http://code.jquery.com/jquery-1.8.3.js" type="text/javascript"></script>
 <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js" type="text/javascript"></script>
 <script type="text/javascript">
    $(function () {
        $("#txtStartDate").datepicker();
        $("#txtEndDate").datepicker();
    });
 </script>

// in above code txtStartDate and txtEndDate is id of your text box

Upvotes: 1

Ric
Ric

Reputation: 13248

how about using jquery to add the calendar?

Take a look: Jquery datepicker

Upvotes: 0

Related Questions