您好,
经过验证这个问题可以参考以下代码实现:- protected override void Render(HtmlTextWriter writer)
- {
- WebControl update = this.FpSpread1.FindControl("Update") as WebControl;
- update.Attributes.Add("onclick", "var ret = confirm('Are you sure you want to update with these changes?'); if(ret){FpSpread1.Update();}");
- base.Render(writer);
- }
复制代码 |