⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 web.config

📁 个人网站开发模板
💻 CONFIG
字号:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
	<!-- Register a new config section-->
	<configSections>
		<section name="SmallBusinessDataProviders" type="SmallBusinessDataProvidersSection" requirePermission="false"/>
	</configSections>
	<!-- Connection string, currently configured for SQL Express-->
	<connectionStrings>
		<remove name="SQLConnectionString"/>
		<add name="SQLConnectionString" connectionString="Data Source=.\SQLExpress;integrated security=true;attachdbfilename=|DataDirectory|SmallCompanyDB.mdf;user instance=true"/>
	</connectionStrings>
	<!-- Register the providers and specify which ones to use for data access for each of the 4 pages-->
	<SmallBusinessDataProviders peopleProviderName="xmlProvider" testimonialsProviderName="xmlProvider" catalogProviderName="xmlProvider" newsProviderName="xmlProvider">
		<!-- Register providers for People - Similarly for other pages-->
		<PeopleProviders>
			<add name="sqlProvider" type="SqlPeopleProvider" connectionStringName="SQLConnectionString"/>
			<add name="xmlProvider" type="XmlPeopleProvider" schemaFile="People.xsd" dataFile="People.xml"/>
		</PeopleProviders>
		<TestimonialsProviders>
			<add name="sqlProvider" type="SqlTestimonialProvider" connectionStringName="SQLConnectionString"/>
			<add name="xmlProvider" type="XmlTestimonialProvider" schemaFile="Testimonials.xsd" dataFile="Testimonials.xml"/>
		</TestimonialsProviders>
		<CatalogProviders>
			<add name="sqlProvider" type="SqlCatalogProvider" connectionStringName="SQLConnectionString"/>
			<add name="xmlProvider" type="XmlCatalogProvider" schemaFile="Items.xsd" dataFile="Items.xml"/>
		</CatalogProviders>
		<NewsProviders>
			<add name="sqlProvider" type="SqlNewsProvider" connectionStringName="SQLConnectionString"/>
			<add name="xmlProvider" type="XmlNewsProvider" schemaFile="News.xsd" dataFile="News.xml"/>
		</NewsProviders>
	</SmallBusinessDataProviders>
	<system.web>
		<customErrors mode="RemoteOnly" defaultRedirect="CustomError.aspx"/>
		<pages theme="Standard"/>
		<compilation debug="true"/></system.web>
</configuration>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -