温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:ajax奥运留言本v2.0源码
当前文件:
OlympicBook20/web.config,打开代码结构图
OlympicBook20/web.config,打开代码结构图1<?xml version="1.0"?> 2
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> 3
<configSections> 4
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> 5
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> 6
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> 7
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> 8
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/> 9
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> 10
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> 11
</sectionGroup> 12
</sectionGroup> 13
</sectionGroup> 14
</configSections> 15
<connectionStrings> 16
<add name="con" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|book.mdb"/> 17
</connectionStrings> 18
<system.web> 19
20
<pages> 21
<controls> 22
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 23
</controls> 24
</pages> 25
<!-- 26
Set compilation debug="true" to insert debugging 27
symbols into the compiled page. Because this 28
affects performance, set this value to true only 29
during development. 30
--> 31
<compilation debug="true"> 32
<assemblies> 33
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 34
</assemblies> 35
</compilation> 36
<httpHandlers> 37
<remove verb="*" path="*.asmx"/> 38
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 39
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 40
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> 41
</httpHandlers> 42
<httpModules> 43
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 44
</httpModules> 45
</system.web> 46
<system.web> 47
<authentication mode="Forms"> 48
<forms loginUrl="~/RoleByAccess/adminlogin.aspx" defaultUrl="~/RoleByAccess/main.aspx" name=".ASPXAUTH" path="/"> 49
</forms> 50
</authentication> 51
<authorization> 52
<deny users="?"/> 53
</authorization> 54
</system.web> 55
<location path="index.aspx" allowOverride="true"> 56
<system.web> 57
<authorization> 58
<allow users="*"/> 59
</authorization> 60
</system.web> 61
</location> 62
<location path="message.aspx" allowOverride="true"> 63
<system.web> 64
<authorization> 65
<allow users="*"/> 66
</authorization> 67
</system.web> 68
</location> 69
<location path="RoleByAccess/ShowImage.aspx" allowOverride="true"> 70
<system.web> 71
<authorization> 72
<allow users="*"/> 73
</authorization> 74
</system.web> 75
</location> 76
<location path="image" allowOverride="true"> 77
<system.web> 78
<authorization> 79
<allow users="*"/> 80
</authorization> 81
</system.web> 82
</location> 83
<location path="book.css" allowOverride="true"> 84
<system.web> 85
<authorization> 86
<allow users="*"/> 87
</authorization> 88
</system.web> 89
</location> 90
<location path="RoleByAccess/admin.css" allowOverride="true"> 91
<system.web> 92
<authorization> 93
<allow users="*"/> 94
95
</authorization> 96
</system.web> 97
</location> 98
<system.web> 99
<customErrors mode="Off"/> 100
</system.web> 101
<system.web.extensions> 102
<scripting> 103
104
<webServices> 105
<!-- Uncomment this line to customize maxJsonLength and add a custom converter --> 106
<!-- 107
<jsonSerialization maxJsonLength="500"> 108
<converters> 109
<add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/> 110
</converters> 111
</jsonSerialization> 112
--> 113
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. --> 114
<!-- 115
<authenticationService enabled="true" requireSSL = "true|false"/> 116
--> 117
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved 118
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and 119
writeAccessProperties attributes. --> 120
<!-- 121
<profileService enabled="true" 122
readAccessProperties="propertyname1,propertyname2" 123
writeAccessProperties="propertyname1,propertyname2" /> 124
--> 125
</webServices> 126
<!-- 127
<scriptResourceHandler enableCompression="true" enableCaching="true" /> 128
--> 129
</scripting> 130
</system.web.extensions> 131
<system.webServer> 132
<validation validateIntegratedModeConfiguration="false"/> 133
<modules> 134
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 135
</modules> 136
<handlers> 137
<remove name="WebServiceHandlerFactory-Integrated"/> 138
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 139
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 140
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 141
</handlers> 142
</system.webServer> 143
</configuration> 144
145


