spread4+vs2008
客户端代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
<%@ Register Assembly="FarPoint.Web.Spread" Namespace="FarPoint.Web.Spread" TagPrefix="FarPoint" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script src="/EasyOA/JavaScript/JQuery/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
FpSpread1.CallBack("abc,-1,-1");
});
</script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="Black" BorderStyle="Solid"
BorderWidth="1px" Height="200" Width="400">
<CommandBar BackColor="Control" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight"
ButtonShadowColor="ControlDark">
</CommandBar>
<Sheets>
<FarPoint:SheetView SheetName="Sheet1">
</FarPoint:SheetView>
</Sheets>
</FarPoint:FpSpread>
</form>
</body>
</html>
服务端代码:无
在VS2008中对FpSpread1.CallBack("abc,-1,-1");,经常会提示“Microsoft JScript 运行时错误: 对象不支持此属性或方法”
是不是此时spread未加载完成?如果真是这样那是否有方法判断spread完全加载完毕?
如果网速的问题导致spread加载较为缓慢,此时点击下一页按钮不是要出问题?
不仅CallBack会,Add等一些会回发的方法都会有这样的提示。 |
|