Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i add calender control in dropdownlist and when i click dropdownlist calendercontrol will appear in dropdownlist, and when i select the date from calendercontrol it will display on text box
Posted
Updated 25-Jan-10 23:32pm
v2

The answer above looks like for Windows control...

For ASP.NET:
Lets say we create a user control that does what you ask.
Drop a textbox, adjacent to it an image (this should give a feel of a dropdown) and then a calendar on the control.

Now, on click of textbox/image:
tie the visibility of the calendar control (also can toggle the image if needed). Once the calendar is visible, select the date and on selection you can hide back the calendar and show the selected date in the textbox (all this can be done on client side)

This in total would give you a feel of a dropdown having calendar.
 
Share this answer
 
1. Title = Add calender control to combobox
2. Message: what you tried
3. Read this
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900