Dear code masters,
I havs a web application designed with asp:Masterpage with content page all works fine, i currently add another master page and disabled the previous one now i developed it with bootstrap but some content page didn't show when at run time even though i pointed all the content page to the new master page.
new masterpage html :
- <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="Admin_MasterPage" %>
-
- <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
-
- <!DOCTYPE html>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
-
- <head runat="server">
- <title>ECEWS LAEAVE APPLICATION</title>
-
- <link href="Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
- <%--<meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />--%>
- <asp:ContentPlaceHolder ID="head" runat="server">
- </asp:ContentPlaceHolder>
- </head>
- <body>
- <form id="form1" runat="server">
- <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
- <div>
- <div class="banner navbar navbar-fixed-top navbar-default" role="banner">
- <asp:Image ID="Image1" runat="server" Height="102px" ImageUrl="~/image/E_Leave_Logo.png" Width="68%" />
- </div>
-
- <nav class=" navbar navbar-default navbar-fixed-top " style="margin-top: 100px;">
- <div class="navbar-header">
- <button type="button" class=" navbar-toggle" data-toggle="collapse" data-target="#tp">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
-
- </div>
-
- <%--<div id="tp" class="navbar-collapse collapse">
- <ul class="nav nav-tabs navbar-nav bg-success">
- <li><a href="Default.aspx">Home</a></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Personnel <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="frmPersonnel.aspx">Personel Record</a></li>
- </ul>
- </li>
- </ul>
- </div>--%>
- <div id="tp" class="navbar-collapse collapse ">
- <ul class="nav navbar-nav nav-tabs pull-right">
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Personnel <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="Admin/frmPersonnel.aspx">Personel Record</a></li>
- <li><a href="frmPensionAdmin.aspx">Pension Fund</a></li>
- <li class="divider"></li>
- <li><a href="Admin/frmApproveLeave.aspx">Leave Approval</a></li>
- <li><a href="Admin/frmLeavReport.aspx">Leave Report</a></li>
- </ul>
-
- </li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Entry Form <span class="caret"></span>
- <ul class="dropdown-menu">
- <li><a href="Personnel/frmLeavesheet.aspx">Leave Application</a></li>
- <li><a href="Personnel/Appraisal.aspx">Staff Performance</a></li>
- </ul>
- </a>
- </li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Admin <span class="caret"></span>
- <ul class="dropdown-menu">
- <li><a href="Admin/frmCreateUser.aspx">Create User </a></li>
- <li><a href="Admin/frmChangepass.aspx">Change Password</a></li>
- </ul>
- </a>
- </li>
- <li><a href="#" class="glyphicon glyphicon-envelope">Contact</a></li>
- <li><a href="#" class="glyphicon ">About Us</a></li>
- <li><a href="#" class="glyphicon ">Login</a></li>
- </ul>
-
-
- </div>
-
-
- </nav>
-
-
- <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
- </asp:ContentPlaceHolder>
-
- <footer class=" navbar navbar-fixed-bottom bg-success">
- <p class="text-center">Copyright ©2016</p>
- </footer>
- </div>
- </form>
- <script src="Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
- <script src="Scripts/bootstrap.min.js" type="text/javascript"></script>
- </body>
- </html>
while content page html :
This content page is not showing with the master page.
Kindly advice me on what i am doing wrong.
Thank you all