我建了个ASPX页<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %><%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %><!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" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:Label id="Label1" runat="server" Text="Label"></asp:Label>
</contenttemplate>
</asp:UpdatePanel>
<asp:Timer id="Timer1" runat="server" Interval="5000" OnTick="Timer1_Tick">
</asp:Timer>
</div>
</form>
</body>
</html>对应的ASPX.CS文件using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;public partial class Default3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{ }
protected void Timer1_Tick(object sender, EventArgs e)
{
this.Label1.Text = this.Label1.Text + "a";
}
}
客户端报错IE7
行:60
Char:1
错误:'Sys'未定义
代码:0
URL:http://localhost:2003/HanHe/Default3.aspx火狐
Sys is not defined
[Break on this error] Sys.Application.initialize();
Sys is not defined
[Break on this error] Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElemen...我加了断点,程序根本就没走闹钟的那个事件,为什么?
或者谁有这个闹钟的演示代码,拿出来分享下,谢了。
Namespace="System.Web.UI" TagPrefix="asp" %><!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" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:Label id="Label1" runat="server" Text="Label"></asp:Label>
</contenttemplate>
</asp:UpdatePanel>
<asp:Timer id="Timer1" runat="server" Interval="5000" OnTick="Timer1_Tick">
</asp:Timer>
</div>
</form>
</body>
</html>对应的ASPX.CS文件using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;public partial class Default3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{ }
protected void Timer1_Tick(object sender, EventArgs e)
{
this.Label1.Text = this.Label1.Text + "a";
}
}
客户端报错IE7
行:60
Char:1
错误:'Sys'未定义
代码:0
URL:http://localhost:2003/HanHe/Default3.aspx火狐
Sys is not defined
[Break on this error] Sys.Application.initialize();
Sys is not defined
[Break on this error] Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElemen...我加了断点,程序根本就没走闹钟的那个事件,为什么?
或者谁有这个闹钟的演示代码,拿出来分享下,谢了。
但是ajax环境出错了
建议重新部署ajax运行环境~