.aspx文件:红色加粗部分要有,不然会出现运行错误。 配置文件:web.config 红色加粗部分为修改部分


1
<%
@ Page Language
=
"
C#
"
AutoEventWireup
=
"
true
"
CodeFile
=
"
Default.aspx.cs
"
Inherits
=
"
_Default
"
%>
2 <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > 3
4 < html xmlns ="http://www.w3.org/1999/xhtml" >
5 < head runat ="server" >
6 < title > 无标题页 </ title >
7 </ head >
8 < body >
9 < form id ="form1" runat ="server" >
10 < div >
11 <ext:PageManager ID="PageManager1" runat="server" />
12 < ext:Button ID ="Button1" runat ="server" Text ="Button" >
13 </ ext:Button >
14 </ div >
15 </ form >
16 </ body >
17 </ html >
2 <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > 3
4 < html xmlns ="http://www.w3.org/1999/xhtml" >
5 < head runat ="server" >
6 < title > 无标题页 </ title >
7 </ head >
8 < body >
9 < form id ="form1" runat ="server" >
10 < div >
11 <ext:PageManager ID="PageManager1" runat="server" />
12 < ext:Button ID ="Button1" runat ="server" Text ="Button" >
13 </ ext:Button >
14 </ div >
15 </ form >
16 </ body >
17 </ html >
1
<?
xml version="1.0"
?>
2 <!--
3 注意: 除了手动编辑此文件以外,您还可以使用
4 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
5 “网站”->“Asp.Net 配置”选项。
6 设置和注释的完整列表在
7 machine.config.comments 中,该文件通常位于
8 \Windows\Microsoft.Net\Framework\v2.x\Config 中
9 -->
10 < configuration >
11 <configSections>
12 <section name="ExtAspNet" type="ExtAspNet.ConfigSection, ExtAspNet"/>
13 </configSections>
14 <ExtAspNet Theme="blue" Language="zh_CN" EnableAjax="true"/>
15 < appSettings />
16 < connectionStrings />
17 < system.web >
18 <pages>
19 <controls>
20 <add assembly="ExtAspNet" namespace="ExtAspNet" tagPrefix="ext"/>
21 </controls>
22 </pages>
23 <httpModules>
24 <add name="ExtAspNetScriptModule" type="ExtAspNet.ScriptModule, ExtAspNet"/>
25 </httpModules>
26 <!--
27 设置 compilation debug="true" 将调试符号插入
28 已编译的页面中。但由于这会
29 影响性能,因此只在开发过程中将此值
30 设置为 true。
31 -->
32 < compilation debug ="true" >
33 < assemblies >
34 < add assembly ="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /></ assemblies ></ compilation >
35 <!--
36 通过 <authentication> 节可以配置 ASP.NET 使用的
37 安全身份验证模式,
38 以标识传入的用户。
39 -->
40 < authentication mode ="Windows" />
41 <!--
42 如果在执行请求的过程中出现未处理的错误,
43 则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
44 开发人员通过该节可以配置
45 要显示的 html 错误页
46 以代替错误堆栈跟踪。
47
48 <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
49 <error statusCode="403" redirect="NoAccess.htm" />
50 <error statusCode="404" redirect="FileNotFound.htm" />
51 </customErrors>
52 -->
53 </ system.web >
54 </ configuration >
55
2 <!--
3 注意: 除了手动编辑此文件以外,您还可以使用
4 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
5 “网站”->“Asp.Net 配置”选项。
6 设置和注释的完整列表在
7 machine.config.comments 中,该文件通常位于
8 \Windows\Microsoft.Net\Framework\v2.x\Config 中
9 -->
10 < configuration >
11 <configSections>
12 <section name="ExtAspNet" type="ExtAspNet.ConfigSection, ExtAspNet"/>
13 </configSections>
14 <ExtAspNet Theme="blue" Language="zh_CN" EnableAjax="true"/>
15 < appSettings />
16 < connectionStrings />
17 < system.web >
18 <pages>
19 <controls>
20 <add assembly="ExtAspNet" namespace="ExtAspNet" tagPrefix="ext"/>
21 </controls>
22 </pages>
23 <httpModules>
24 <add name="ExtAspNetScriptModule" type="ExtAspNet.ScriptModule, ExtAspNet"/>
25 </httpModules>
26 <!--
27 设置 compilation debug="true" 将调试符号插入
28 已编译的页面中。但由于这会
29 影响性能,因此只在开发过程中将此值
30 设置为 true。
31 -->
32 < compilation debug ="true" >
33 < assemblies >
34 < add assembly ="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /></ assemblies ></ compilation >
35 <!--
36 通过 <authentication> 节可以配置 ASP.NET 使用的
37 安全身份验证模式,
38 以标识传入的用户。
39 -->
40 < authentication mode ="Windows" />
41 <!--
42 如果在执行请求的过程中出现未处理的错误,
43 则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
44 开发人员通过该节可以配置
45 要显示的 html 错误页
46 以代替错误堆栈跟踪。
47
48 <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
49 <error statusCode="403" redirect="NoAccess.htm" />
50 <error statusCode="404" redirect="FileNotFound.htm" />
51 </customErrors>
52 -->
53 </ system.web >
54 </ configuration >
55