http://www.csdn.net/Develop/read_article.asp?id=20770
解决方案 »
- 页面中的服务器端控件为何不自动在designer.cs文件中生成了?
- 项目中如何引用网站App_Code目录下的cs类?
- 关于伪静态的问题
- 询问COOKIE存储内容问题
- Server.Transfer的使用
- asp.net打开excel不显示
- 求 高性能负载均衡方案(包括软硬件)
- 推荐:权限控制比较好的项目....
- 请求帮助!在线等!!!!!!!!!!!!!!!!!!!!!$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- asp.net如何获取IP地址所在地
- 有分来送:怎样获取HTML代码
- 如何在进行程序部署时,加入一个I agreement 窗口(让用户接受法律协议的窗口)!!!*****急
{
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
e.Item.Attributes["onmouseover"]="this.name=this.style.backgroundColor;this.style.backgroundColor='#FFF79C';";
e.Item.Attributes["onmouseout"]="this.style.backgroundColor=this.name;";
}
}
if (e.Item.ItemIndex>=0)
{
int i;
i=e.Item.ItemIndex;
e.Item.Attributes.Add("onmouseover", "mouseover("+i+")");
e.Item.Attributes.Add("onmouseout", "mouseout("+i+")");
}
javascript:
<script language="JavaScript">
function mouseover(i)
{
DataGrid1.rows[i+1].bgColor = "#00C0C0";
}
function mouseout(i)
{
DataGrid1.rows[i+1].bgColor = "white";
}
</script>