熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

ASP.NET入門教程 5.1.4 設置站點級別的樣式[2]

2022-06-13   來源: .NET編程 

     試一試

    ()右擊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頁面

[]  []  []  


From:http://tw.wingwit.com/Article/program/net/201311/15191.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.