Opening up a Calendar when clicking on a Text Box
Posted on 2008-11-11
Please see attached graphic first.
I would like my users to be able to:
1. Click on the 'Date' text box and then a small calendar to open up where they will have to select the day, month and year.
2. Select the 'Display" text box and change the desired number of lines they wish to view in the gridview below. (it will default to 10)
3. Then click a Submit button and see the results.
4. The Result gridview will show 10 lines or the desired 'display" value of lines entered.
The table to display has 4 fields, Date (datetime), day(varchar), PeopleHelped (INT), Value(smallmoney)
, and to make it easy on me, I have already created a record for each day of the Year 2008 and 2009, so all they have to do is to click on the 'edit' icon in the Gridview to start editing. Users will do this process daily.
Question: How do I make a Calendar appear when they click on the date textbox? and how do I pass this variable to the gridview. Also, how do I pass the value of the variable 'display' to my gridview?
I hope this is not confusing. Thanks,