日期控件的e.Cell增加一个事件SelectionChanged
DataView dv;
if (e.Day.IsOtherMonth)
{
e.Cell.Text = " ";
}
else
{
e.Cell.CopyBaseAttributes(DayLogCalendar);
//如何增加一个事件DayLogCalendar
dt = Pdl.GetTitle(ViewState[ "id "].ToString(), e.Day.Date.ToString( "yyyy-MM-dd "));
int j = dt.Rows.Count;
string stem = " ";
if (j> 0)
{
for (int i = 0; i < 1; i++)
{
stem = "内容: "+ dt.Rows[0][ "Content "].ToString();
if (stem.Length > 7)
{
stem=stem.Substring(0, 7) + "... ";
}
e.Cell.Controls.Add(new LiteralControl( " <br/> <a id= " + dt.Rows[0][ "ID "].ToString() + " ' target= '_self ' title= ' " + dt.Rows[0][ "Content "].ToString() + " ')> " + stem + " </a> "));
}
}
else
&nb