Ruruboy
Ruruboy

Reputation: 662

Date picker for ASP.NET 4.0 application

I have an ASP.NET/C# 4.0 application. I want a date picker icon to appear in the text box. On clicking the textbox web control I want the date picker to show.

I want to minimize code at this point but yet display a decent look and feel with the date picker.

Upvotes: 0

Views: 658

Answers (1)

user3300359
user3300359

Reputation: 19

Try using Bootstrap instead. http://www.eyecon.ro/bootstrap-datepicker/. You just need to download the .js file and import it to make it work.

Here is the sample code

<div class="input-append date" id="dpYears" data-date="2008-12-31"
data-date-format="yyyy-mm-dd" data-date-viewmode="years"> <asp:TextBox
ID="txtBirthday" runat="server" Width="175px"></asp:TextBox> <span
class="add-on"><i class="icon-calendar"></i></span></div>

Upvotes: 1

Related Questions