在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;"); } 关于反射的描述 c#怎么定义全局变量? 如何在panel上画一个矩形 关于C#中的DLL调用问题 aspnetpager 控件问题 C#里怎么可以不设置ShowInTaskbar属性而不让窗口标题栏在TaskBar上显示 急紧求助,选择框CheckBox如何根据数据进行选中 关于button 控件 的javascript问题 webform中数据库Update的问题 LINUX服务问题 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;");
}