HTTP 错误 404 - Not Found。
高手们,帮帮忙吧!我被这个问题搞晕了好几次了!
是这样的,我用vs2008新建了个web项目,用了一个AjaxPanel控件,里面添加了asp:Button ,
看上去好像没什么,但调试时,当我按下asp:Button 控件,促发asp:Button 的click事件时
就会出现如下错误:
“/试验田二”应用程序中的服务器错误。
--------------------------------------------------------------------------------
HTTP 错误 404 - Not Found。
--------------------------------------------------------------------------------
版本信息: ASP.NET Development Server 9.0.0.0
真的不知道那里出错了。
我的html代码是这样的:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
<%@ Register assembly="MagicAjax" namespace="MagicAjax.UI.Controls" tagprefix="ajax" %>
<!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>
<ajax:AjaxPanel ID="AjaxPanel1" runat="server" Width="100%">
<asp:Button ID="Button1" runat="server" Text="Button" />
</ajax:AjaxPanel>
</div>
</form>
</body>
</html>