datepicker in C#.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hiranmaie
    New Member
    • Feb 2009
    • 18

    datepicker in C#.net

    Hi,

    How can I design a datepicker using javascript or some other tools in C#.net, I dont want to use a calendar as it occupies much space. I want a dropdown which allows me to select the date required from that dropdown. I have googled for the same, got some answers which didnt work for me. Please some one help me out to solve this.

    Regards,
    Hiranmaie
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Use a regular combobox (listbox) that you have pre-filled with all the dates for the next month or so?

    Comment

    • hiranmaie
      New Member
      • Feb 2009
      • 18

      #3
      It should be any date which the user prefers to select, and I can't pre-fill all the dates in a combobox.

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        You don't want to use a calendar control because of the amount of real estate it uses, but you want to give complete range of all time past and present to choose from. You're going to have to be creative in your choice of controls then.

        Use a text box and have the user put in a date then you parse it. Expect that the user will format it in a way that can cause an error.

        Use a couple list boxes, one for month (1-12) one for data (1-31) and a numeric updown for year.

        I don't have your design layout to see what works with the look you've created. There is only so many ways you can present day, month, year and you want to do it in less than 175pixelsx175pi xel calendar. You're going to have to be creative.

        Comment

        Working...