日期:2014-05-16  浏览次数:20329 次

我按MS的例子做的,没有做出电子表的效果出来呀?
<%@   Page   Language= "C# "   AutoEventWireup= "true "   CodeFile= "js.aspx.cs "   Inherits= "js "   %>

<!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 ">
        <title> 无标题页 </title>
</head>
<body>
        <form   id= "form1 "   runat= "server ">
        <div>
                <asp:ScriptManager   ID= "ScriptManager1 "     EnablePartialRendering= "true "   runat= "server ">
                </asp:ScriptManager>
       
        </div>
                <asp:UpdatePanel   ID= "UpdatePanel1 "   runat= "server ">
                        <ContentTemplate>
                                <asp:Label   ID= "Label1 "   runat= "server "   Text= "Label "> </asp:Label>
                        </ContentTemplate>
                </asp:UpdatePanel>
                <script   type= "text/javascript "   language= "javascript ">
                        function   updateTime()
                        {
                                var   label   =   document.getElementById( "Label1 ");
                                if   (label)   {
                                        var   time   =   (new   Date()).localeFormat( " ");
                                        label.innerHTML   =   time;
                                }
                        }
                        updateTime();
                        window.setInterval(updateTime,   1000);
                </script>
        </form>
</body>