在GridView中 光棒效果怎么实现的? 如 题! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //你要学会结贴!!protected void gvBooks_RowDataBound(object sender,GridViewRowEventArgs e){ if(e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroundColor=#6699ff") e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=currentcolor") }} 他说“currentcolor” 未定义! protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='ivory'"); e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='white'"); } } protected void gvBooks_RowDataBound(object sender,GridViewRowEventArgs e){ if(e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroundColor=#6699ff") e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=currentcolor") }} //你要学会结贴!!protected void gvBooks_RowDataBound(object sender,GridViewRowEventArgs e){ if(e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "var currentcolor=this.style.backgroundColor;this.style.backgroundColor=#6699ff") e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=currentcolor") }} protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { e.Row.Attributes.Add("onmouseover", "this.oldcolor=this.style.backgroundColor;this.style.backgroundColor='#ffffcc'"); e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.oldcolor;"); } vs2008 做安装包的问题 c#中用fileupload上传图片 webserver中json反序列化的时候出现一个异常? win7下用PATH类的getfullname()得到的文件路径是C盘某某文件下的路径问题 .net权限控制 反射如何获得实体层 问:关于Nbear框架 辛苦了半天写的获取汉字笔画数的代码(C#)居然不行? c#的oracle数据库操作?update、insert? 设计器的设计问题! C# 求一下条记录的id wpf 组件
protected void gvBooks_RowDataBound(object sender,GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover",
"currentcolor=this.style.backgroundColor;this.style.backgroundColor=#6699ff")
e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=currentcolor")
}
}
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='ivory'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='white'"); } }
{
if(e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover",
"currentcolor=this.style.backgroundColor;this.style.backgroundColor=#6699ff")
e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=currentcolor")
}
}
protected void gvBooks_RowDataBound(object sender,GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover",
"var currentcolor=this.style.backgroundColor;this.style.backgroundColor=#6699ff")
e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=currentcolor")
}
}
{
e.Row.Attributes.Add("onmouseover", "this.oldcolor=this.style.backgroundColor;this.style.backgroundColor='#ffffcc'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.oldcolor;");
}