做DG鼠标放上去变色效果时,老是提示说少了this?????代码是这样的private void DG_Notice_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{e.Item.Attributes.Add("OnMouseOut", "this.style.backgroundColor='White';this.style.color='#003399'");
e.Item.Attributes.Add("OnMouseOver", "this.style.backgroundColor='#6699FF';this.style.color='#8C4510'");}
说是51行少了结束符!!!!  以下是50行到59行的代码
private void InitializeComponent()
{    

this.DG_Notice.DeleteCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DG_Notice_DeleteCommand);
this.DG_Notice.ItemDataBound += new System.Web.UI.WebControls.DataGridItemEventHandler(this.DG_Notice_ItemDataBound);
this.DG_Notice.SelectedIndexChanged += new System.EventHandler(this.DG_Notice_SelectedIndexChanged);
this.Confrom1.ServerChange += new System.EventHandler(this.Confrom1_ServerChange);
this.Load += new System.EventHandler(this.Page_Load); }HTML页里我只有49行呀!!!!!