变色:
Dim ii As Integer Dim count1 As Integer = DataGrid1.Items.Count For ii = 0 To count1 - 1 DataGrid1.Items(ii).Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroundColor='#FFFFCC'") DataGrid1.Items(ii).Attributes.Add("onmouseout", "this.style.backgroundColor=currentcolor") Next
Dim ii As Integer Dim count1 As Integer = DataGrid1.Items.Count For ii = 0 To count1 - 1 DataGrid1.Items(ii).Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroundColor='#FFFFCC'") DataGrid1.Items(ii).Attributes.Add("onmouseout", "this.style.backgroundColor=currentcolor") Next
解决方案 »
- 如何制作像百度搜索搜索提示框?
- asp:checkbox在表单中显示出了数据库的值,应该只有对勾的,各位帮我看看为什么啊?
- ASP.NET 2.0防止同一用户同时登陆的方法问题?
- asp.net 2.0中为什么要点击两次再出现对话框?
- 一起讨论
- textBox回车后datagrid的序号列消失?(急!迷茫中。。。)
- 为什么我在浏览器上打localhost就进3721了
- asp.net文章分页
- 为什么我不能访问.ASP文件啊?救救我
- 怪事哦:.net中网页属性怎么少,好多属性它都提示:未能找到元素"??"的任何属性"XXX",而这些属性在MX中都有的啊?
- 一个1500人的厂矿,使用ASP.NET+SQL SERVER的管理信息系统,服务器推荐用什么配置(在线)
- 请帮忙!建立.NET站点后系统报错!该怎么设置!
e.Item.Attributes.Add
("onmouseover","currentcolor=this.style.backgroundColor;this.style.backgroundColor='#FFFFCC'");
e.Item.Attributes.Add
("onmouseout","this.style.backgroundColor=currentcolor");