時間段: 12.06 -- 12.20
1.GridView
RowDataBound事件: e.Row.DataItem 獲得行綁定的基礎(chǔ)類對象
行內(nèi)容填充:
e.Row.Cells[0].Controls.Add()
e.Row.Cells[2].Text
單元格合并
(old) RowSpan = 1; //確保不為空
(old) RowSpan ++;
(new) Cell.Visible = false;
2.TreeView 點擊項改變目標(biāo)框架
<iframe name="main" />
node.Target = "main";
node.NavigateUrl
3.Calendar 等各個部分項
DayRender 日期呈現(xiàn)時激發(fā)事件
//呈現(xiàn)時激發(fā)
CalendarDay cd = e.Day;
TableCell tc = e.Cell;
面板中添加啊 HTML標(biāo)記的的組件
tc.Controls.Add(new LiteralControl(" "));
tc.Controls.Add(hy);
tc.Controls.Add(new LiteralControl("<br>" + nd.GetLunarHolDay()));
收獲:
利用后置代碼的綁定事件, 靈活的展示數(shù)據(jù)內(nèi)容.