在updatecommand中写的弹出框没有反应
代码也是在这个网站找的,但是还是不行
ClientScript.RegisterStartupScript(this.GetType(), "newwin", "<script type ='text/javascript'> alert('更新失败,请查询后重新更新')</script>");
protected override void Render(HtmlTextWriter writer)
{
WebControl update = this.spread_firstcheck.FindControl("Update") as WebControl;
update.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(spread_firstcheck, "Update,-1,-1") + "; return false;");
base.Render(writer);
} |