/// <summary>
/// 删除时提醒
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void gvUserList_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton lb = e.Row.FindControl("lbtnDelete") as LinkButton;
lb.Attributes.Add("onclick", "return confirm('删除用户会将与此用户相关的订单一起删除,确认删除吗?')");
}
}
/// 删除时提醒
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void gvUserList_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton lb = e.Row.FindControl("lbtnDelete") as LinkButton;
lb.Attributes.Add("onclick", "return confirm('删除用户会将与此用户相关的订单一起删除,确认删除吗?')");
}
}