回复 3楼wkj123的帖子
wkj123 你好,
请参考我的代码,
后台:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- this.FpSpread1.Sheets[0].RowCount = 50;
- this.FpSpread2.Sheets[0].RowCount = 50;
- }
- protected override void Render(HtmlTextWriter writer)
- {
- WebControl bn = this.FpSpread1.FindControl("Next") as WebControl;
- bn.Attributes.Add("onclick", "nextPage()");
- base.Render(writer);
- }
复制代码
前台:
- <script type="text/javascript">
- function nextPage() {
- FpSpread1.Next();
- FpSpread2.Next();
- return false;
- }
- </script>
复制代码 |