久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='llipB'><style id='llipB'><dir id='llipB'><q id='llipB'></q></dir></style></legend>

    <i id='llipB'><tr id='llipB'><dt id='llipB'><q id='llipB'><span id='llipB'><b id='llipB'><form id='llipB'><ins id='llipB'></ins><ul id='llipB'></ul><sub id='llipB'></sub></form><legend id='llipB'></legend><bdo id='llipB'><pre id='llipB'><center id='llipB'></center></pre></bdo></b><th id='llipB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='llipB'><tfoot id='llipB'></tfoot><dl id='llipB'><fieldset id='llipB'></fieldset></dl></div>
      <bdo id='llipB'></bdo><ul id='llipB'></ul>
    <tfoot id='llipB'></tfoot>

      <small id='llipB'></small><noframes id='llipB'>

      1. 更改導航 ID 以突出顯示當前頁面 ASP.NET 的編程解

        Programmatic solution to change navigation id to highlight current page ASP.NET(更改導航 ID 以突出顯示當前頁面 ASP.NET 的編程解決方案)
        <tfoot id='LpQc3'></tfoot>

        • <small id='LpQc3'></small><noframes id='LpQc3'>

          <i id='LpQc3'><tr id='LpQc3'><dt id='LpQc3'><q id='LpQc3'><span id='LpQc3'><b id='LpQc3'><form id='LpQc3'><ins id='LpQc3'></ins><ul id='LpQc3'></ul><sub id='LpQc3'></sub></form><legend id='LpQc3'></legend><bdo id='LpQc3'><pre id='LpQc3'><center id='LpQc3'></center></pre></bdo></b><th id='LpQc3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LpQc3'><tfoot id='LpQc3'></tfoot><dl id='LpQc3'><fieldset id='LpQc3'></fieldset></dl></div>
            <tbody id='LpQc3'></tbody>
          <legend id='LpQc3'><style id='LpQc3'><dir id='LpQc3'><q id='LpQc3'></q></dir></style></legend>
              <bdo id='LpQc3'></bdo><ul id='LpQc3'></ul>

                • 本文介紹了更改導航 ID 以突出顯示當前頁面 ASP.NET 的編程解決方案的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 Visual Studio 2008 和 ASP.NET 3.5 編寫網站.我設置了一個母版頁來簡化布局并保留內容頁面而不是內容和布局.

                  I am writing a website with Visual Studio 2008 and ASP.NET 3.5. I have a masterpage set up to simplify the layout and to keep the content pages for content rather than content and layout.

                  導航是列表,css'd,所以它看起來像一個欄.為了在欄上突出顯示頁面,列表項需要看起來像這樣 <li id="current">.如果可以避免,我不想使用 <asp:ContentPlaceHolder>.是否有一些代碼可以添加到我的每個頁面(或僅添加到母版頁?)來完成此操作,或者我是否使用 <asp:ContentPlaceHolder>'s?

                  The navigation is list, css'd so it looks like a bar. In order to highlight the page on the bar, the list item needs to look like this <li id="current">. I do not want to use <asp:ContentPlaceHolder> if I can avoid it. Is there some code I can add to each of my pages (or just to the masterpage?) to accomplish this or am I stuck using <asp:ContentPlaceHolder>'s?

                  推薦答案

                  向母版頁添加一個名為 Page Section 的屬性

                  Add a property to your master page called Page Section

                  public string PageSection { get; set; }
                  

                  將 MasterType 頁面指令添加到內容頁面的頂部

                  Add a MasterType page directive to the top of your content pages

                  <%@ MasterType VirtualPath="~/foo.master" %>
                  

                  在你的內容頁面代碼后面,設置母版頁的PageSection屬性

                  In your content page code behind, set the PageSection property of the master page

                  Master.PageSection = "home";    
                  

                  在您的母版頁中,將正文標記設為服務器標記

                  In your master page, make the body tag a server tag

                  <body ID="bodyTag" runat="server">
                  

                  在后面的母版頁代碼中,使用該屬性在body標簽上設置一個類

                  In the master page code behind, use that property to set a class on the body tag

                  bodyTag.Attributes.Add("class", this.PageSection);
                  

                  為每個導航項賦予唯一的 ID 屬性.

                  Give each of your nav items a unique ID attribute.

                  在你的 css 中,根據當前頁面類更改導航項的顯示

                  In your css, change the display of the nav items based on the current page class

                  .home #homeNavItem,
                  .contact #contactNavItem
                  { 
                      color: #f00; 
                  } 
                  

                  這篇關于更改導航 ID 以突出顯示當前頁面 ASP.NET 的編程解決方案的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  GoogleWebAuthorizationBroker in MVC For Google Drive Access(MVC 中的 GoogleWebAuthorizationBroker 用于 Google Drive 訪問)
                  Why do I get System.UnauthorizedAccessException Access to the path #39;Google.Apis.Auth#39; is denied(為什么我得到 System.UnauthorizedAccessException 對路徑“Google.Apis.Auth的訪問被拒絕) - IT屋-程序員軟件開發技術分享
                  WinRT - How to ignore or delete page from navigation history(WinRT - 如何從導航歷史記錄中忽略或刪除頁面)
                  Looking for a Visual Studio toolbox style navigation for desktop applications(尋找適用于桌面應用程序的 Visual Studio 工具箱樣式導航)
                  access-like data navigation in WPF?(WPF中類似訪問的數據導航?)
                  Windows Phone 8 navigation issue between pages(Windows Phone 8 頁面之間的導航問題)

                    <i id='E3usz'><tr id='E3usz'><dt id='E3usz'><q id='E3usz'><span id='E3usz'><b id='E3usz'><form id='E3usz'><ins id='E3usz'></ins><ul id='E3usz'></ul><sub id='E3usz'></sub></form><legend id='E3usz'></legend><bdo id='E3usz'><pre id='E3usz'><center id='E3usz'></center></pre></bdo></b><th id='E3usz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='E3usz'><tfoot id='E3usz'></tfoot><dl id='E3usz'><fieldset id='E3usz'></fieldset></dl></div>
                  • <legend id='E3usz'><style id='E3usz'><dir id='E3usz'><q id='E3usz'></q></dir></style></legend>

                    • <bdo id='E3usz'></bdo><ul id='E3usz'></ul>
                        <tbody id='E3usz'></tbody>

                      <tfoot id='E3usz'></tfoot>

                      <small id='E3usz'></small><noframes id='E3usz'>

                            主站蜘蛛池模板: 国产超碰人人爽人人做人人爱 | 先锋av资源网| 国产精品一区二区在线免费观看 | 人人九九精 | 国产农村妇女精品一二区 | 一区二区视频在线 | 黄色片免费 | 日日综合| 中文字幕免费视频 | 久久性色| 正在播放亚洲 | 狠狠涩| 成人精品啪啪欧美成 | 久久99久久98精品免观看软件 | 亚洲精品日本 | www.日本三级 | 精品三区 | 亚洲一区中文字幕 | 国产视频一区二区 | 免费在线观看一区二区 | 色婷婷综合久久久中字幕精品久久 | 国产成人免费视频 | 日韩国产精品一区二区三区 | 欧美日韩一区二区三区四区 | 福利二区 | 久久精品成人 | 国产精品久久777777 | 岛国一区| 成人国产精品 | 日韩在线免费视频 | 欧美激情亚洲天堂 | a在线v| 亚洲一区二区三 | 精品国产一区二区国模嫣然 | 国产区高清 | 久久色视频 | 一区二区三区网站 | 久热久草 | 91精品国产综合久久福利软件 | 免费一看一级毛片 | 国产精品免费大片 |