zoukankan      html  css  js  c++  java
  • GridView鼠标经过感知以及点击行弹出窗口

    private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
    {  
          if(e.Item.ItemIndex>=0) //此行可以删除掉
          {
                    //弹出窗口代码
    e.Item.Attributes.Add("onclick","window.open('WebForm2.aspx?ZoneNo="+e.Item.Cells[0].Text+"','','Toolbar=no')");
    e.Item.Attributes.Add("onMouseOver","this.style.backgroundColor='#e9e9e9'; this.style.cursor='hand';");
    e.Item.Attributes.Add("onMouseOut","this.style.backgroundColor='#f7f7f7';");  
          }
    }

  • 相关阅读:
    BUAA OO Unit1 表达式求导
    中介者模式
    命令模式
    观察者模式
    解释器模式
    策略模式
    迭代器模式
    模板方法模式
    代理模式
    桥接模式
  • 原文地址:https://www.cnblogs.com/benzhang/p/1743118.html
Copyright © 2011-2022 走看看