does anyone have any idea how I can pass a list of dates in code behind to a calendar, so it will highlight the dates which are in the list. thank you
<script>
$(function () {
$("#datepicker").datepicker();
});
</script>
<p>Date: <input type="text" id="datepicker" /></p>
list of dates stored in code behind:
DateTime start = new DateTime(2013, 02, 20);
DateTime end = new DateTime(2013, 01, 11);
var dates = new List<DateTime>();
for (var dt = start; dt <= end; dt = dt.AddDays(1))
{
dates.Add(dt);
}