试一试
()右击Chapter文件夹并选择Add New Item在弹出的对话框中创建一个新的Web配置文件(Webconfig)并单击OK
()将下面的代码(灰色部分)添加到Webconfig文件中并保存该文件
<?xml version=?>
<!
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application Use
the Website>AspNet Configuration option in Visual Studio
A full list of settings and comments can be found in
machineconfigcomments usually located in
\Windows\MicrosoftNet\Framework\vx\Config
>
<configuration>
<appSettings/>
<connectionStrings/>
<systemweb>
<pages theme=red styleSheetTheme=blue />
()删除所有页面中的Theme属性和Stylesheet属性并运行该应用程序站点中的所有页面都将应用Red主题但请注意图中显示的ThemeDefault页面
[] [] []