现在的位置: 首页 > 综合 > 正文

gridview添加删除确认对话框

2013年08月23日 ⁄ 综合 ⁄ 共 357字 ⁄ 字号 评论关闭
 

 Protected Sub GridView1_RowDataBound(ByVal sender As ObjectByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
        
If e.Row.RowType = DataControlRowType.DataRow Then
            e.Row.Cells(
12).Attributes.Add("onclick""javascript:return confirm('你确认要删除吗?')")
        
End If
    
End Sub

抱歉!评论已关闭.