user261596
user261596

Reputation: 23

Need to create a datepicker in Asp.net?

I need to create a datepicker in asp.net. Got a few in the web but lokking for some thing different.

Thanks

Upvotes: 2

Views: 4961

Answers (3)

Billy
Billy

Reputation: 15706

I suggest you use the jQueryUI datepicker plugin:

http://jqueryui.com/demos/datepicker/

Here is an example from jQuery UI website:

<script type="text/javascript">
    $(function() {
        $("#datepicker").datepicker();
    });
    </script>

<div class="demo">
<p>Date: <input id="datepicker" type="text"></p>
</div><!-- End demo -->
<div style="display: none;" class="demo-description">
<p>The datepicker is tied to a standard form input field.  Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay.  Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p>
</div><!-- End demo-description -->

Upvotes: 3

James Campbell
James Campbell

Reputation: 5087

I agree Jquery is nice

http://www.ajaxline.com/10-best-jquery-datepickers-plugins

This is also nice, I have used this many time, very simple:

http://www.graymattersoft.com/NETProducts/GMDatePicker/tabid/68/Default.aspx

Upvotes: 2

Andy White
Andy White

Reputation: 88475

Have you tried the ASP.NET Ajax Calendar control? http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx

Upvotes: 1

Related Questions