请高手指点,初学ajax,ie提示出错:'Sys.WebForms.PageRequestManagerServerErrorException:...404

littlespring 2007-09-17 11:27:17
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body topmargin ="0">
<form id="form1" runat="server" >
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
 <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<%= DateTime.Now.ToString() %>
</ContentTemplate>
</asp:UpdatePanel>
<br />
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click1" />  
</form>
</body>
</html>


using System;
using System.Data;
using System.Configuration;
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 _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
ScriptManager1.RegisterAsyncPostBackControl(Button1);
}
protected void Button1_Click1(object sender, EventArgs e)
{
Label1.Text = "first ajax program!";
UpdatePanel1.Update();
}
}



这个是书上的例子,可是怎么老是出错,google了一下,还是看不出哪里错了,请高手指点一下。
...全文
488 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
qingtian6 2007-09-17
  • 打赏
  • 举报
回复
webconfig里做了配置了没?
littlespring 2007-09-17
  • 打赏
  • 举报
回复
错误提示:'Sys.WebForms.PageRequestManagerServerErrorException: An uknown error occurred while processing the request on the server. The status code returned from the server was: 404.
littlespring 2007-09-17
  • 打赏
  • 举报
回复
高手阿,
真的是因为中文文件夹的原因。
给分
mfkdxu 2007-09-17
  • 打赏
  • 举报
回复
检查一下 你的Default.aspx上面的文件夹中是否出现过中文名字 有中文的话 改成英语就可以了

110,535

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧