|
DayRender look at this event.
Such as:
// Transferred from the results of other netizens.
////Only display the current month date
//CalendarDay d = e.Day;
//TableCell c = e.Cell;
//if (d.IsOtherMonth)
//{
// c.Controls.Clear();
//}
//if (Request.Params["BlogId"] != null)
//{
// if (PostDt.Rows.Count> 0)
// {
// DataView PostDv = new DataView(PostDt);
// PostDv.RowFilter = "CreateDate='" + e.Day.Date.ToString("yyyy-MM-dd") + "'";
// if (PostDv.Count> 0)
// {
// e.Cell.Attributes.Add("onclick", "calendar_go('" + Request.Params["BlogId"].ToString() + "','" + d.Date.ToString("yyyy-MM- dd") + "');");
//}
// else
// {
// e.Cell.Enabled = false;
//}
//}
// else
// {
// e.Cell.Enabled = false;
//}
//} |
|