protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
                if (e.Row.RowType == DataControlRowType.DataRow)
        {                                  e.Row.Attributes.Add("onclick", "HidePage();");
                   }    }
点击鼠标鼠标后延时3秒关闭怎么实现谢谢各位大虾了。

解决方案 »

  1.   

    用js里面的setInterval和setTimeout都可以实现
      

  2.   

     e.Row.Attributes.Add("onclick", "setTimeout(HidePage,3000);");
      

  3.   

    网页就用楼上的,Winform就用Thread.sleep("3000");
      

  4.   

    setTimeOut("HidePage("+参数+")",3000)
      

  5.   

    e.Row.Cells[1].Attributes.Add("onmouseover", "setTimeout(ShowPage(" + GridView1.DataKeys[e.Row.DataItemIndex].Value.ToString()+",this),3000);");
    传ID和obj到新页面能传过去值但是没有3秒延时 这是怎么回事啊
      

  6.   

    setTimeOut("HidePage('"+参数+"')",3000)