protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Button delBtn = e.Row.FindControl("del_btn") as Button;
delBtn.OnClientClick = "return confirm('您確定要刪除【"+e.Row.Cells[4].Text+"】的這筆記錄嗎?')";
}
}
全站熱搜
留言列表