[操作疑難] Asp.net Master page 問題

本帖最後由 luckiejacky 於 2015-3-30 13:58 編輯

Hi
我有個master page, 抄一個Theme叫

http://vinceg.github.com/Bootstrap-Admin-Theme

不知道為什麼Navigation Bar會變成黑色,而且走晒位
Gen出來的HTML好多CSS LINKS,原本Template example是沒有的...



Any ideas?
  1. <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="RCS_Master.master.cs" Inherits="_2_03.RCS_Master" %>
  2. <!DOCTYPE html>
  3. <html class="no-js">
  4. <head id="Head1" runat="server">     
  5.     <title><asp:ContentPlaceHolder ID="TitleContent" runat="server"/></title>         

  6.     <!-- Bootstrap -->         
  7.     <link href="App_Themes/RCS_Theme2/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
  8.     <link href="App_Themes/RCS_Theme2/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
  9.     <link href="App_Themes/RCS_Theme2/vendors/easypiechart/jquery.easy-pie-chart.css" rel="stylesheet" media="screen">
  10.     <link href="App_Themes/RCS_Theme2/assets/styles.css" rel="stylesheet" media="screen">
  11.     <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  12.     <!--[if lt IE 9]>
  13.         <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  14.     <![endif]-->
  15.     <script src="App_Themes/RCS_Theme2/vendors/modernizr-2.6.2-respond-1.1.0.min.js"></script>     
  16.     <asp:ContentPlaceHolder ID="HeaderContent" runat="server"></asp:ContentPlaceHolder>
  17. </head>
  18. <body>   
  19.     <form id="Form1" runat="server">
  20.     <div class="navbar navbar-fixed-top">
  21.        <div class="navbar-inner">
  22.            <div class="container-fluid">
  23.                 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span>
  24.                     <span class="icon-bar"></span>
  25.                     <span class="icon-bar"></span>
  26.                 </a>
  27.                 <a class="brand" href="#">Response Card System 2.04</a>
  28.                 <asp:ContentPlaceHolder ID="MenuContent" runat="server"></asp:ContentPlaceHolder>                           
  29.             </div>
  30.         </div>
  31.     </div>   
  32.     <div class="container-fluid">
  33.        <asp:ContentPlaceHolder ID="MainContent" runat="server"></asp:ContentPlaceHolder>
  34.     </div>
  35.     </form>
  36.         
  37.     <!--/.fluid-container-->
  38.     <script src="App_Themes/RCS_Theme2/vendors/jquery-1.9.1.min.js"></script>
  39.     <script src="App_Themes/RCS_Theme2/bootstrap/js/bootstrap.min.js"></script>
  40.     <script src="App_Themes/RCS_Theme2/vendors/easypiechart/jquery.easy-pie-chart.js"></script>
  41.     <script src="App_Themes/RCS_Theme2/assets/scripts.js"></script>
  42.    
  43. </body>
  44. </html>
複製代碼
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

d link ref既CSS 同JS FILE有冇CHECK清楚, 例如  :
App_Themes/RCS_Theme2/bootstrap/css/bootstrap.min.css

PATH 內有冇呢個FILE ?

TOP

我個ManageIssue.aspx是在
~/clerk folder內

Master page在 ~/

bootstrap.min.css是在
~/App_Themes/RCS_Theme2/bootstrap/css

TOP

當只看MASTER PAGE系點先? 有冇走位 ?
若果是ManageIssue.aspx走位, 甘一定系D PATH有問題,
第一行  Inherits="_2_03.RCS_Master" 應漏了~/, 因MASTER PAGE 在ROOT, 而ManageIssue.aspx在~/clerk folder內

TOP

Thanks, I have switched to other themes now, and it works great now.

TOP