回复 1楼X765321的帖子
你好,
可以通过以下方法实现:
- protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
- {
- ClientScript.RegisterStartupScript(this.GetType(), "newwin",
- "<script type ='text/javascript'> alert('Update 按钮触发 ButtonCommand')</script>");
- }
- protected override void Render(HtmlTextWriter writer)
- {
- WebControl update = this.FpSpread1.FindControl("Update") as WebControl;
- update.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(FpSpread1, "Button,-1,-1") + "; return false;");
- base.Render(writer);
- }
复制代码 |