1 public class CallBackPostStar : WebControl, ICallbackEventHandler, INamingContainer
2 {
3 //...
4
5 #region ICallbackEventHandler 成员
6 public string GetCallbackResult()
7 {
8 return Score.ToString();
9 }
10
11 public void RaiseCallbackEvent(string eventArgument)
12 {
13 Score = Convert.ToInt32(eventArgument);
14 EnsureChildControls();
15 //这里保存不了控件状态,例如
16 Table table = this.Controls[0] as Table;
17 TableCell cell = table.Rows[0].Cells[1];
18 cell.Text = Score;
19 //该怎么解决?
20 }
21 #endregion
22 }
慕尼黑的夜晚无繁华