I am using datalist to display data from the database,I have got three fields whose Data Type is datetime, What I was looking for is to display a calendar in the datalist , with date selected(coming from database), Also the user can use that calendar to change date , which should update the date field in the database when update is clicked,
Is there any way to integrate calendar in the datalist as perform the above requirements.
Any assistance or suggestions will be appreciated
I’m not specifically promoting Jquery-UI, as there are many js-driven calendars out there, but I’ve been using it in many different scenarios, and I’m sure it can work in whatever scenario you can imagine: http://jqueryui.com/demos/datepicker/
That control has events, in particular onClose and onSelect. When those happen, you have your date. You can send it to the server either via AJAX or via form-submit (postback).
Also, ASP.NET has a built-in calendar control that supports postbacks, if that’s what you are looking for.