当我删除 GridView 行时,我想显示 JavaScript 确认对话框并运行一个函数。你是怎样做的?
类似的东西:
protected void GridViewActivities_RowDataBound(object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton lb = (LinkButton)e.Row.FindControl("LinkButton1");
lb.Attributes.Add("onClick", "return confirm('You are sure?'); + MyFunction()");
}
}
慕尼黑8549860
相关分类