随笔分类 - ASP.NET
摘要:protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { //将满足特定条件的行标为高亮 if (e.Row.RowType == DataControlRowType.DataRow)//判定当前的行是否属于datarow类型的行 { int money = Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "MONEY"));//取当前行的列值 if (money == 77) e.Row.BackColor = Co...
阅读全文
摘要:刚开始学习就遇到这样的问题确实挺烦人的 //button按钮控件的onmouseover与onmouseout事件的概述this.btn_login.Attributes.Add("onmouseover", "this.style.borderColor='white';this.style.color='white';this.style.backgroundColor='#6b8e23';this.style.borderStyle='dashed';this.style.width='
阅读全文
浙公网安备 33010602011771号