Advertisement
Guest User

Bootstrap + asp.net

a guest
Sep 25th, 2013
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 4.57 KB | None | 0 0
  1. <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="BuildSystemBootStrap.SiteMaster" %>
  2.  
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head runat="server">
  6.     <meta charset="utf-8" />
  7.     <title><%: Page.Title %> - My ASP.NET Application</title>
  8.     <asp:PlaceHolder runat="server">    
  9.           <%: Scripts.Render("~/bundles/modernizr") %>
  10.     </asp:PlaceHolder>  
  11.     <webopt:BundleReference runat="server" Path="~/Content/css" />
  12.     <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  13.     <link href="~/Content/bootstrap.css" rel="stylesheet"/>
  14.  
  15.     <%--<meta name="viewport" content="width=device-width" />--%>
  16.     <asp:ContentPlaceHolder runat="server" ID="HeadContent" />
  17. </head>
  18. <body>
  19.     <form runat="server">
  20.     <asp:ScriptManager runat="server">
  21.         <Scripts>
  22.             <%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%>
  23.             <%--Framework Scripts--%>
  24.            
  25.             <asp:ScriptReference Name="MsAjaxBundle" />
  26.             <asp:ScriptReference Name="jquery" />
  27.             <asp:ScriptReference Name="jquery.ui.combined" />
  28.             <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
  29.             <asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
  30.             <asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
  31.             <asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
  32.             <asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
  33.             <asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
  34.             <asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
  35.             <asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
  36.             <asp:ScriptReference Name="WebFormsBundle" />
  37.             <%--Site Scripts--%>
  38.  
  39.         </Scripts>
  40.     </asp:ScriptManager>
  41.     <header>
  42.  
  43.         <div class="content-wrapper">
  44.             <div>
  45.                 <nav class="navbar navbar-default" role="navigation">
  46.                   <!-- Brand and toggle get grouped for better mobile display -->
  47.                   <div class="navbar-header">
  48.                     <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
  49.                       <span class="sr-only">Toggle navigation</span>
  50.                       <span class="icon-bar"></span>
  51.                       <span class="icon-bar"></span>
  52.                       <span class="icon-bar"></span>
  53.                     </button>
  54.                     <a class="navbar-brand" href="#">My website</a>
  55.                   </div>
  56.  
  57.                   <!-- Collect the nav links, forms, and other content for toggling -->
  58.                   <div class="collapse navbar-collapse navbar-ex1-collapse">
  59.                     <ul class="nav navbar-nav navbar-right">
  60.                       <li><a id="A1" runat="server" href="~/">Home</a></li>
  61.                       <li><a id="A2" runat="server" href="~/About">About</a></li>
  62.                       <li><a id="A3" runat="server" href="~/Contact">Contact</a></li>
  63.                       <li class="dropdown">
  64.                         <a href="#" class="dropdown-toggle" data-toggle="dropdown">Accounts<b class="caret"></b></a>
  65.                         <ul class="dropdown-menu">
  66.                           <li><a href="#">Action</a></li>
  67.                         </ul>
  68.                       </li>
  69.                     </ul>
  70.                   </div><!-- /.navbar-collapse -->
  71.                 </nav>
  72.             </div>
  73.         </div>
  74.     </header>
  75.     <div id="body">
  76.         <asp:ContentPlaceHolder runat="server" ID="FeaturedContent" />
  77.         <section class="content-wrapper main-content clear-fix">
  78.             <asp:ContentPlaceHolder runat="server" ID="MainContent" />
  79.         </section>
  80.     </div>
  81.     <footer>
  82.         <div class="content-wrapper">
  83.             <div class="well-sm">
  84.                 <p>&copy; <%: DateTime.Now.Year %> - My ASP.NET Application</p>
  85.             </div>
  86.         </div>
  87.     </footer>
  88.     </form>
  89.   <script src="~/scripts/jquery-1.9.1.js" type="text/javascript"></script>
  90. <script src="~/scripts/bootstrap.js" type="text/javascript"></script>
  91. </body>
  92. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement