文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>.NET中GridView控件的高亮显示和删除前弹框提示

.NET中GridView控件的高亮显示和删除前弹框提示

时间:2010-11-20  来源:唐学阳

   protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//删除前弹框提示
LinkButton b = e.Row.FindControl("LinkButton1") as LinkButton;
b.Attributes.Add(
"onclick", "return confirm('确定要删除吗?');");
//高亮显示
e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#66ff99'");
e.Row.Attributes.Add(
"onmouseout", "this.style.backgroundColor=c");
}
}

 

排行榜 更多 +
空中跑酷汉化版

空中跑酷汉化版

赛车竞速 下载
修仙传说

修仙传说

角色扮演 下载
魔界零之迷宫

魔界零之迷宫

冒险解谜 下载