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

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

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

      1. <tfoot id='xiBWb'></tfoot>
        • <bdo id='xiBWb'></bdo><ul id='xiBWb'></ul>

      2. MasterPage 是否知道正在顯示的頁面?

        Does a MasterPage know what page is being displayed?(MasterPage 是否知道正在顯示的頁面?)
        <legend id='kc96t'><style id='kc96t'><dir id='kc96t'><q id='kc96t'></q></dir></style></legend>

            <bdo id='kc96t'></bdo><ul id='kc96t'></ul>

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

                  <tbody id='kc96t'></tbody>

                <tfoot id='kc96t'></tfoot>
                • 本文介紹了MasterPage 是否知道正在顯示的頁面?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  當我使用 MasterPages 在網站上導航時,應用程序是否知道我在哪個頁面上?如果是這樣,它是否將其存儲在我可以訪問的對象中?

                  When I navigate on a website utilizing MasterPages, does the application know what page I am on? If so, does it store it in an object I can access?

                  我問的原因是我可以替換這個:

                  The reason I am asking is so I can replace this:

                  //masterpage 
                  <div id="nav_main">
                     <ul><asp:ContentPlaceHolder ID="navigation" runat="server">                    
                     </asp:ContentPlaceHolder></ul>
                  </div>
                  
                  //content page(s)
                  <asp:Content ContentPlaceHolderID="navigation" ID="theNav" runat="server">
                     <li><a href="default.aspx">Home</a></li>
                     <li id="current"><a href="faq.aspx">FAQ</a></li>
                     <li><a href="videos.aspx">Videos</a></li>
                     <li><a href="#">Button 4</a></li>
                     <li><a href="#">Button 5</a></li>
                  </asp:Content>
                  

                  使用更優雅的導航解決方案,通過將列表項的 ID 設置為當前"來突出顯示指向頁面的鏈接.目前,每個頁面都會重新創建導航,并將其各自鏈接的 ID 設置為 current.

                  With a more elegant solution for the navigation, which highlights the link to the page by having the list item's ID set to "current". Currently each page recreates the navigation with its respective link's ID set to current.

                  推薦答案

                  我同意 Chris:使用控件來處理此菜單的顯示,并使其知道應該突出顯示哪個鏈接.這是我經常使用的一種方法.如果您有多個頁面需要不同樣式的相同鏈接,這可能會變得更加復雜,但您明白了.

                  I'd concur with Chris: use a control to handle display of this menu and make it aware of what link should be highlighted. Here's a method I use regularly. It may become more complex if you've got multiple pages that would need the same link styled differently, but you get the idea.

                  Dim thisURL As String = Request.Url.Segments(Request.Url.Segments.Count - 1)
                  Select Cast thisUrl
                     Case "MenuItem1.aspx"
                         lnkMenu1.CssClass = "Current"
                     Case "MenuItem2.aspx"
                         lnkMenu2.CssClass = "Current"
                  End Select
                  

                  這篇關于MasterPage 是否知道正在顯示的頁面?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 頁面之間的導航問題)
                        <tbody id='ZOpnH'></tbody>

                    1. <small id='ZOpnH'></small><noframes id='ZOpnH'>

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

                      • <tfoot id='ZOpnH'></tfoot>

                          • <bdo id='ZOpnH'></bdo><ul id='ZOpnH'></ul>

                            <legend id='ZOpnH'><style id='ZOpnH'><dir id='ZOpnH'><q id='ZOpnH'></q></dir></style></legend>
                          • 主站蜘蛛池模板: 涩涩视频网站在线观看 | 国产成人精品免费视频大全最热 | 国产精品污www一区二区三区 | 亚洲国产中文在线 | 久草在线中文888 | 欧美日韩在线一区二区 | av在线电影网| 91av在线视频观看 | 国产精品揄拍一区二区久久国内亚洲精 | 婷婷久久综合 | 欧美黑人一级爽快片淫片高清 | 国产乱人伦 | 日日摸天天添天天添破 | 一本一道久久a久久精品蜜桃 | 欧美精品在线播放 | 在线 丝袜 欧美 日韩 制服 | 99国产视频 | 精品九九九 | 二区亚洲| 毛片1| 99精品国产在热久久 | 爱爱综合网 | 中文字幕在线中文 | 伊人春色成人网 | 午夜免费视频 | 交专区videossex农村 | 欧洲尺码日本国产精品 | 91成人精品| 91亚洲国产 | 久久草在线视频 | 午夜寂寞影院列表 | 色资源在线 | 好姑娘影视在线观看高清 | 欧美成人h版在线观看 | 91精品国产色综合久久 | 91视频播放 | 中文字幕日韩av | 亚洲免费精品 | 国外成人免费视频 | 国产91久久久久 | 波多野吉衣在线播放 |