Skip to content
Loading
Master Page not Showing Content Page  
  •       
  •     "Scripts/jquery-1.9.1.min.js" type="text/javascript">  
  •     "Scripts/bootstrap.min.js" type="text/javascript">  
  •   
  •   
  • while content page html :
    1. <%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="frmApproveLeave.aspx.cs" Inherits="Admin_frmApproveLeave" %>  
    2.   
    3. "Content1" ContentPlaceHolderID="head" Runat="Server">  
    4.     "text/css">  
    5.   
    6.         .auto-style4 {  
    7.             width: 100%;  
    8.         }  
    9.         .auto-style6 {  
    10.             width: 364px;  
    11.         }  
    12.         .auto-style7 {  
    13.         width: 662px;  
    14.     }  
    15.     .auto-style5 {  
    16.         text-align: right;  
    17.     }  
    18.         .style1  
    19.         {  
    20.             width: 573px;  
    21.         }  
    22.           
    23.   
    24. "Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
    25.        
    26.     "margin-top:150px" class="row">  
    27.     class="col-sm-2">
      
  •      class="col-sm-8">  
  •                     class=" col-sm-12 bg-primary text-center">Leave Approval form
  •   
  •                 class="table table-bordered auto-style4 table-condensed">  
  •                      
  •                       
  •                         "text-align: right"  >  
  •                             "Label1" runat="server" Text="Employee ID :">  
  •                           
  •                           
  •                             "TextBox1" runat="server">  
  •                            <%-- "btnFind" runat="server" OnClick="btnFind_Click" Text="Find" />--%>  
  •                             "submit" id="btnFind" runat="server" onserverclick="btnFind_Click" class="btn btn-warning">Find class="glyphicon glyphicon-search">  
  •                           <%--  "btnClear" runat="server" OnClick="btnClear_Click" Text="Clear All" />--%>  
  •                             "submit" id="btnClear" runat="server" onserverclick="btnClear_Click" class="btn btn-danger">Clear All class="glyphicon glyphicon-remove">  
  •                           
  •                       
  •                       
  •                         "2"  >  
  •                             "GridView1" runat="server" AllowPaging="True"   
  •                                 AutoGenerateColumns="False" BackColor="White" BorderColor="#E7E7FF"   
  •                                 BorderStyle="Dotted" BorderWidth="1px" CellPadding="3" DataKeyNames="num" OnRowCommand="GridView1_RowCommand" OnPageIndexChanging ="GridView1_PageIndexChanging" Width="100%">  
  •                                 "#F7F7F7" />  
  •                                   
  •                                     "employeeid" HeaderText="Employee ID" />  
  •                                     "startedate" DataFormatString="{0:d}" HeaderText="Start Date">  
  •                                     "Center" />  
  •                                       
  •                                     "stopdate" DataFormatString="{0:d}" HeaderText="End Date">  
  •                                     "Center" />  
  •                                       
  •                                     "nodays" HeaderText="No. of Days">  
  •                                     "Center" />  
  •                                       
  •                                     "status" HeaderText="Status">  
  •                                     "Center" />  
  •                                       
  •                                     "btnCmd" HeaderText="Select" Text="Select">  
  •                                     "True" Font-Italic="True" HorizontalAlign="Center" />  
  •                                       
  •                                   
  •                                 "Center" />  
  •                                 "#B5C7DE" ForeColor="#4A3C8C" />  
  •                                 "#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />  
  •                                 "First" LastPageText="Last" Mode="NextPreviousFirstLast" NextPageText="Next" PreviousPageText="Prev" />  
  •                                 "#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />  
  •                                 "#E7E7FF" ForeColor="#4A3C8C" />  
  •                                 "#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />  
  •                                 "#F4F4FD" />  
  •                                 "#5A4C9D" />  
  •                                 "#D8D8F0" />  
  •                                 "#3E3277" />  
  •                               
  •                           
  •                       
  •                       
  •                       
  •                           
  •                             "Label2" runat="server" Text="Employee ID :">  
  •                           
  •                           
  •                             "TextBox2" runat="server">  
  •                           
  •                       
  •                       
  •                           
  •                             "Label3" runat="server" Text="Requested Days :">  
  •                           
  •                           
  •                             "TextBox3" runat="server">  
  •                           
  •                       
  •                       
  •                           
  •                             "Label4" runat="server" Text="Approved Days :">  
  •                           
  •                           
  •                             "TextBox4" runat="server">  
  •                                           
  •                                     "CheckBox1" runat="server" Text="Approved ?" TextAlign="Left" />  
  •                           
  •                       
  •                       
  •                            
  •                           
  •                             <%--"Button1" runat="server" Text="Submit and Approved " />--%>  
  •                             "submit" class="btn btn-success" id="btnSave" runat="server" onserverclick="btnSave_Click">Submit and Approved  class="glyphicon glyphicon-ok">  
  •                           
  •                       
  •                        
  •                            
  •                           
  •                               
  •                           
  •                       
  •                        
  •                            
  •                           
  •                               
  •                           
  •                       
  •                   
  •                 
  •                   
  •           
  •   
  •  This content page is not showing with the master page.
     
    Kindly advice me on what i am doing wrong.
     
    Thank you all 

    7 Replies

    Know the answer? Post it — somebody with the same question will find it here.