ASP.NET Datepicker without calendar visualization

I work in C # / ASP.NET 3.5 and want users to enter their date of birth. I tried asp: Calendar web control for this, and also considered using jQuery-UI datepicker and considered suggestions for this question .

All of these options do not seem to have the “mode” that I want. I do not want the actual calendar to pop up, but simply revealed during the day / month / year. My requirements:

  • Only three drop-down lists per day / month / year
  • Ability to set the minimum and maximum year
  • Decision on the client side to select the correct date (so do not allow February 30 +).
  • Nice to have: day / month and month / day culture-based switch

Can anyone suggest such a control? Or should I just move on and build it myself?

+4
source share
3 answers

Jeroen, no built-in control. An easy way to do this is to add 3 drop-down lists and add all months / years (these are simple). The days are changing, so either you can statically add 31, or do some checking, or use a database that contains a bunch of dates and use this as a data source.

+2
source

I used jQuery add in that it handled this for me, I was able to update a hidden field that could be read from the ASP.Net code behind, sorry I can’t remember the exact plugin, but if you search on jQuery you must find it (I quickly looked, but could not track it, jQuery site search is pants).

0
source

jQuery datepicker might be what you want: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/

0
source

All Articles