<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="Admin_HolidayMaster, App_Web_fz5gj3qy" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<%--     <link href="../CSS/style.css"type="text/css" rel="Stylesheet" />
   <link href="../CSS/ForButton.css"type="text/css" rel="Stylesheet" />
    <link href="../CSS/ForTextBox.css"type="text/css" rel="Stylesheet" /> 
   <script type="text/javascript" src="../js/JScript.js"></script>
        <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
--%> 
  <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
    <style type="text/css">
        .style2
        {
            width: 292px;
        }
       	 .shadow_five {
        background-color: #B3EBF4;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        -o-border-radius: 10px;
        -ms-border-radius: 10px;
        border-radius: 10px;
        -moz-box-shadow: 3px 3px 5px #B1A59A;
        -webkit-box-shadow: 3px 3px 5px #B1A59A;
        -o-box-shadow: 3px 3px 5px #B1A59A;
        -ms-box-shadow: 3px 3px 5px #B1A59A;
        box-shadow: 3px 3px 5px #B1A59A;
        padding: 10px;
        margin-bottom: 10px;
    }
        .shadow_five1 {
            background-color: #F2FFC6;
            -moz-border-radius: 10px;
            -webkit-border-radius: 10px;
            -o-border-radius: 10px;
            -ms-border-radius: 10px;
            border-radius: 10px;
            -moz-box-shadow: 3px 3px 5px #B1A59A;
            -webkit-box-shadow: 3px 3px 5px #B1A59A;
            -o-box-shadow: 3px 3px 5px #B1A59A;
            -ms-box-shadow: 3px 3px 5px #B1A59A;
            box-shadow: 3px 3px 5px #B1A59A;
            padding: 10px;
            margin-bottom: 10px;
        }
         .shadow_five2 {
            background-color: #FFF0DB;      
            -moz-border-radius: 10px;
            -webkit-border-radius: 10px;
            -o-border-radius: 10px;
            -ms-border-radius: 10px;
            border-radius: 10px;
            -moz-box-shadow: 0px 0px 0px #B1A59A;
            -webkit-box-shadow: 0px 0px 0px #B1A59A;
            -o-box-shadow: 0px 0px 0px #B1A59A;
            -ms-box-shadow: 0px 0px 0px #B1A59A;
            box-shadow: 0px 0px 0px #B1A59A;
            padding: 10px;
            width: 580px;
        }
        
          .shadow_five {
        background-color: #FFECCE;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        -o-border-radius: 10px;
        -ms-border-radius: 10px;
        border-radius: 10px;
        -moz-box-shadow: 3px 3px 5px #B1A59A;
        -webkit-box-shadow: 3px 3px 5px #B1A59A;
        -o-box-shadow: 3px 3px 5px #B1A59A;
        -ms-box-shadow: 3px 3px 5px #B1A59A;
        box-shadow: 3px 3px 5px #B1A59A;
        padding: 10px;
        margin-bottom:10px;
        
    }
    
    
          .lb
    {
            clear: left;
            margin: 5px 2px 0 0;
            text-align: right;
            font-size: 12px;
            color: #660033;
            text-transform: capitalize;
            text-shadow: 0px 0.5px 0px #444;
            font-weight:normal;
            font-family:Verdana;
        }
     .Label
    {
 /* IE10 Consumer Preview */ 
background-image: -ms-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Mozilla Firefox */ 
background-image: -moz-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Opera */ 
background-image: -o-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Webkit (Safari/Chrome 10) */ 
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #FFCE47), color-stop(1, #F2813F));

/* Webkit (Chrome 11+) */ 
background-image: -webkit-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* W3C Markup, IE10 Release Preview */ 
background-image: linear-gradient(to top, #FFCE47 0%, #F2813F 100%);
}
  
    .p1
        {
       background-image: linear-gradient(to bottom, #fcfcfc, #f7f7f7 3%, #ff9966 12%,#ff9966 90%, #bfbfbf);
-webkit-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
-moz-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
            height:35px;
            width:259px;
            margin-top:0px;
        }
        .style3
        {
            width: 303px;
        }
  
   .font
{
	font-size:12px;
	font-family:Verdana;
	}

                .cssLoadingTimer
        {        	
        	/* filter:alpha(opacity=90);       	
        	opacity:0.7; */        	
        	text-align:center; 
        	position:fixed; 
        	margin:5% 0% 0px 30%; 
        	   
        	width:300px;
        	height:20%;
        	background-color:#ffecb3;
        	display:inline;
            z-index:999;
            margin-top:200px;
            align:center;
        	
        
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<asp:UpdateProgress ID="UpdateProgress1" runat="server"  
                           DynamicLayout="true"  >
                          <ProgressTemplate>
                          <div style="width:100%;">
                              <div class="cssLoadingTimer"  >
                              <p> Please wait...</p>
                                  <img id="Img1" alt="Loading..." src="../images/Regloader.gif" runat="server" style="margin-top:15px;" align="middle"  />
                                  </div>
                                  
                                  </div>
                          </ProgressTemplate>
                      </asp:UpdateProgress>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
 <ContentTemplate>
<asp:Panel ID="Panel1" runat="server" Width="1330px" CssClass="shadow_five">  <%--BorderStyle="Groove"--%>
<div class="p12" style="float:left; width:210px;"  >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:Blue;font-weight:bold;padding-top:5px;">
     <b style="color:White;">&nbsp;&nbsp;&nbsp;Holiday Master 
      </p>
   
           </div>
           <div style="float:right;"></div>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
           <asp:Button ID="btn_holiday_setting" runat="server" 
        Text="Hodiday Setting" CssClass="myButton" onclick="btn_holiday_setting_Click"/>&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" Text="Add Hodiday" CssClass="myButton" 
        onclick="Button1_Click"/>&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btn_show_holiday" runat="server" Text="Show Hodiday" 
        CssClass="myButton" onclick="btn_show_holiday_Click" 
      />
        
    <asp:Panel ID="pnl_show_holiday_setting"  runat="server" Visible="false">
    
    <div class="boxshadow"  style="margin-left:180px;">
    
    <table >
    <tr>
    <td colspan="3">
    <br /><br />
  <div class="p12" style="float:left; width:150px;"  >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:Blue;font-weight:bold;padding-top:5px;">
     <b style="color:White;">&nbsp;&nbsp;&nbsp;Holiday Setting   
      </p>
   
           </div>
            <br /><br />
    </td>
    </tr>
    <tr>
    <td> <b style="color:Black;width:200px;">Select Weekly Holiday:</b></td>
    <td></td>
    <td>
     <asp:DropDownList ID="ddl_list_week_days" runat="server" ForeColor="Blue" 
            Width="150px"  AutoPostBack="true"
            onselectedindexchanged="ddl_list_week_days_SelectedIndexChanged">
             <asp:ListItem Value="-Select Day-" Text="-Select Day-"></asp:ListItem>
        <asp:ListItem Value="Sunday" Text="Sunday"></asp:ListItem>
         <asp:ListItem  Value="Monday" Text="Monday"></asp:ListItem>
          <asp:ListItem  Value="Tuesday" Text="Tuesday"></asp:ListItem>
           <asp:ListItem  Value="Wednesday" Text="Wednesday"></asp:ListItem>
            <asp:ListItem  Value="Thursday" Text="Thursday"></asp:ListItem>
             <asp:ListItem  Value="Friday" Text="Friday"></asp:ListItem>
             <asp:ListItem  Value="Saturday" Text="Saturday"></asp:ListItem>           
        
        </asp:DropDownList>
        
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddl_list_week_days"
         InitialValue="-Select Day-" ValidationGroup="11" ErrorMessage="Select Day" ForeColor="Red"></asp:RequiredFieldValidator>
    </td>
    
    </tr>
     <tr>
     <td>
       <b style="color:Black;width:200px;">Select Week :</b>
     </td>
     <td></td>
     <td>
         <asp:CheckBox ID="chkbox_Allweek" runat="server" Text="All Week" 
             AutoPostBack="true" ForeColor="Blue" 
             oncheckedchanged="chkbox_Allweek_CheckedChanged"   />
        <asp:CheckBoxList ID="chk_month_week_days" runat="server" ForeColor="Blue" 
             onselectedindexchanged="chk_month_week_days_SelectedIndexChanged" AutoPostBack="true">
         <%-- <asp:ListItem Value="All Week" Text="All Week"></asp:ListItem>--%>
         <asp:ListItem  Value="1" Text="1st"></asp:ListItem>
          <asp:ListItem  Value="2" Text="2nd"></asp:ListItem>
           <asp:ListItem  Value="3" Text="3rd"></asp:ListItem>
            <asp:ListItem  Value="4" Text="4th"></asp:ListItem>
            <asp:ListItem Value="5" Text="5th"></asp:ListItem>
            
        </asp:CheckBoxList>
     </td>
     </tr>
      <tr>
      <td></td>
      <td></td>
      <td> <asp:Button ID="btn_set_holiday" runat="server" Text="Add Setting" 
            CssClass="myButton" OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
             UseSubmitBehavior="false" onclick="btn_set_holiday_Click" ValidationGroup="11"  />
          <asp:Label ID="lbl_setting" runat="server" Text="" ForeColor="Red"></asp:Label>
           <asp:HiddenField ID="hf_value" runat="server" />
            </td>
      </tr>
       <tr>
       <td colspan="3">
       
           <asp:GridView ID="gv_holiday_setting" runat="server" 
               AutoGenerateColumns="false" CellPadding="2" CellSpacing="2" 
                   BackColor="LightGoldenrodYellow" BorderWidth="1px" BorderColor="Black" 
                    Font-Names="Book Antiqua" Font-Size="12px" ForeColor="Black"
                    GridLines="Both" Width="337px">
                     <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
           <Columns>
           <asp:TemplateField HeaderText="Days">
           <ItemTemplate>
               <asp:Label ID="lbl_day_of_month" runat="server" Text='<% # Eval("day") %>'></asp:Label>
           </ItemTemplate>
           </asp:TemplateField>
            <asp:TemplateField HeaderText="Week">
           <ItemTemplate>
               <asp:Label ID="lbl_day_week_no" runat="server" Text='<% # Eval("week_no") %>'></asp:Label>
           </ItemTemplate>
           </asp:TemplateField>
           
              <asp:TemplateField ItemStyle-Width="50px">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkRemove_holiday" runat="server" 
                                            CommandArgument='<%# Eval("holi_setting_id")%>'   
                                            CommandName="Delete" OnClick="Delete_holiday_setting" 
                                            OnClientClick="return confirm('Do you want to delete?')" Text="Delete" 
                                            Width="64px" Height="20px"></asp:LinkButton>
                                    </ItemTemplate>
                                   
                                    <ItemStyle Width="50px" />
                                   
                       </asp:TemplateField>
           </Columns>
           
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
           </asp:GridView>
       </td>
      
       </tr>
    </table>
   
      
        
        
    </div>
  
    
    </asp:Panel>
     
     
     
        <asp:Panel runat="server" ID="pnl_holiday_show" Visible="false"  >
<table width="80%" >
 
<tr><td colspan="5"  >
<br /><br />
 <div class="p12" style="width:150px;"  >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:Blue;font-weight:bold;padding-top:5px;">
     <b style="color:White;">&nbsp;&nbsp;&nbsp;Add Holiday   
      </p>
   
           </div>
           <br /><br />

</td></tr>
<tr>
<td></td>
<td>  <asp:RadioButton ID="rbHalf" runat="server" Font-Bold="True" 
                    Font-Size="Medium" ForeColor="#910000" Text="Half Day" 
                     GroupName="A" AutoPostBack="True" 
                    oncheckedchanged="rbHalf_CheckedChanged" />   
</td>
<td>
<asp:RadioButton ID="rbSingle" runat="server" Font-Bold="True" 
                    Font-Size="Medium" ForeColor="#910000" Text="Single Day" 
                     GroupName="A" AutoPostBack="True" 
                    oncheckedchanged="rbSingle_CheckedChanged" />   
</td>
<td>
<asp:RadioButton ID="rbMultiple" runat="server" Font-Bold="True" 
                    Font-Size="Medium" ForeColor="#910000" Text="Multiple Day" 
                     GroupName="A" AutoPostBack="True" 
                    oncheckedchanged="rbMultiple_CheckedChanged" />   
</td>
<td></td>
</tr>
<tr><td colspan="5" ></td></tr>

    <tr>
    <td colspan="5">
        
         <asp:Panel ID="pnlHalf" runat="server" CssClass="shadow_five" Width="97%" 
             Height="157px" Visible="false">
         <table width="100%"  >
         <tr>
                 <td align="right" >
                     </td>
                 <td align="right" >
                     
                     <asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Size="12px" 
                         Text=" Date  " ForeColor="Black"></asp:Label>
                 </td>
                 <td ><a style="color:Red;">*</a>
                     </td>
                 <td>
                     <asp:TextBox ID="txtDate" runat="server" Width="170px"></asp:TextBox>
                     <cc1:CalendarExtender ID="txtDate_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtDate">
                </cc1:CalendarExtender>
                 </td>
                 <td>
                     &nbsp;</td>
             </tr>
             <tr>
                 <td align="right" >
                     </td>
                 <td align="right" >
                     <asp:Label ID="Label2" runat="server" Font-Names="Verdana" Font-Size="12px" ForeColor="Black"
                         Text=" Hours "></asp:Label>
                 </td>
                 <td ><a style="color:Red;">*</a>
                     </td>
                 <td >
                     <asp:TextBox ID="txtHours" runat="server" Width="170px"></asp:TextBox>
                 </td>
                 <td >
                     &nbsp;</td>
             </tr>
         <tr>
             <td align="right">
                 &nbsp;</td>
             <td align="right" >
                   <asp:Label ID="Label3" runat="server" Font-Names="Verdana" Font-Size="12px" ForeColor="Black" 
                       Text=" Purpose "></asp:Label>
            </td>
             <td >
                 </td>
             <td >
                  <asp:TextBox ID="txtPurpose" runat="server" Height="46px" 
                      Width="177px"  TextMode="MultiLine"></asp:TextBox>
                  </td>
             <td >
               <b > <a  style="color:Red;  padding-left:00px;   ">* Indicates Compulsory Fields</a></b>
                 &nbsp;</td>
         </tr>
        </table>
        </asp:Panel>
    </td>
    </tr>
    
    
     <tr>
    <td colspan="5">
        
         <asp:Panel ID="pnlSingle" runat="server" CssClass="shadow_five2" Width="97%" Height="148px" Visible="false">
         <table width="100%"  >
         <tr>
                 <td align="right" >
                     </td>
                 <td align="right" >
                    
                     <asp:Label ID="Label46" runat="server" Font-Names="Verdana" Font-Size="12px" ForeColor="Black" 
                         Text=" Date  "></asp:Label>
                 </td>
                 <td ><a style="color:Red;">*</a>
                     </td>
                 <td >
                     <asp:TextBox ID="txtDate1" runat="server" Width="170px"></asp:TextBox>
                     <cc1:CalendarExtender ID="txtDate1_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtDate1">
                </cc1:CalendarExtender>
                 </td>
                 <td >
                     &nbsp;</td>
             </tr>
           
         <tr>
             <td  align="right">
                 &nbsp;</td>
             <td align="right" >
                   <asp:Label ID="Label41" runat="server" Font-Names="Verdana" Font-Size="12px" ForeColor="Black"
                       Text=" Purpose "></asp:Label>
            </td>
             <td >
                 </td>
             <td >
                  <asp:TextBox ID="txtPurpose1" runat="server" Height="40px" 
                      Width="177px" TextMode="MultiLine"></asp:TextBox>
                  </td>
             <td >
               <b > <a  style="color:Red;  padding-left:00px;   ">* Indicates Compulsory Fields</a></b>
            <%--   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtPurpose1" ErrorMessage="Enter Purpose" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>--%>
                 </td>
         </tr>
        </table>
        </asp:Panel>
    </td>
    </tr>
    
    
     <tr>
    <td colspan="5">
        
         <asp:Panel ID="pnlMultiple" runat="server" CssClass="shadow_five2" Width="97%" Visible="false"
             Height="155px">
         <table width="100%"  >
         <tr>
                 <td align="right" >
                     </td>
                 <td align="right" >
                     <asp:Label ID="Label4" runat="server" Font-Names="Verdana" Font-Size="12px" 
                         Text=" Reqiured Period " ForeColor="Black"></asp:Label>
                     -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                     <asp:Label ID="Label5" runat="server" Font-Names="Verdana" Font-Size="12px" 
                         Text=" From  " ForeColor="Black"></asp:Label>
                 </td>
                 <td ><a style="color:Red;">*</a>
                     </td>
                 <td >
                     <asp:TextBox ID="txtFrom" runat="server" Width="170px"></asp:TextBox>
                     <cc1:CalendarExtender ID="txtFrom_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtFrom">
                </cc1:CalendarExtender>
                 </td>
                 <td >
                <%--  <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtFrom" ErrorMessage="Enter 'from date'" 
                    ValidationGroup="1"></asp:RequiredFieldValidator> --%> 
                     </td>
             </tr>
             <tr>
                 <td align="right" >
                     </td>
                 <td align="right" class="style3">
                     <asp:Label ID="Label47" runat="server" Font-Names="Verdana" Font-Size="12px" 
                         Text=" To " ForeColor="Black"></asp:Label>
                 </td>
                 <td><a style="color:Red;">*</a>
                     </td>
                 <td >
                     <asp:TextBox ID="txtTo" runat="server" Width="170px"></asp:TextBox>
                     <cc1:CalendarExtender ID="txtToDate_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtTo">
                </cc1:CalendarExtender>
                 </td>
                 <td >
                 <%--  <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                    ControlToValidate="txtTo" ErrorMessage="Enter 'To date'" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>--%>   </td>
             </tr>
         <tr>
             <td  align="right">
                 &nbsp;</td>
             <td align="right" >
                   <asp:Label ID="Label6" runat="server" Font-Names="Verdana" Font-Size="12px" 
                       Text=" Purpose " ForeColor="Black"></asp:Label>
            </td>
             <td>
                 </td>
             <td  >
                  <asp:TextBox ID="txtPurpose2" runat="server" Height="46px" 
                      Width="177px" TextMode="MultiLine"></asp:TextBox>
                      
                       
                  </td>
             <td >
             <b > <a  style="color:Red;  padding-left:00px;   ">* Indicates Compulsory Fields</a></b>
              <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtPurpose2" ErrorMessage="Enter Purpose" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>--%>
                 </td>
         </tr>
        </table>
        </asp:Panel>
    </td>
    </tr>
    <tr>
        <td colspan="5"  valign="top">
        
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <asp:Button ID="btnEdit" runat="server" Font-Size="12px"  
        onclick="btnEdit_Click" Text="Edit/Delete Holidays" ValidationGroup="1" 
                     CssClass="myButton" Width="200px"/>
        
       
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         <asp:Button ID="btnSubmit" runat="server" Font-Size="12px"  Visible="false"
   onclick="btnSubmit_Click" Text="Submit" ValidationGroup="1" 
 CssClass="myButton" Width="100px"/>
                     
                     
                     
                     <br />
                     
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblInsert" runat="server" Font-Names="Verdana" Font-Size="12px" Visible="true"
                         ForeColor="Green"></asp:Label>
             <asp:Label ID="Label8" runat="server" Font-Names="Verdana" Font-Size="12px" Visible="true"
                         ForeColor="Green"></asp:Label>
         <asp:Label ID="lblbl1" runat="server" Font-Size="12px" Visible="true" ForeColor="Green"></asp:Label>
                     
            <b style="color:White;">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" 
                CellPadding="4" Font-Size="12px" ForeColor="#333333" GridLines="Both" 
                onrowdatabound="GridView1_RowDataBound" Width="734px">
                <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                <Columns>
                    <asp:TemplateField Visible="false">
                        <ItemTemplate>
                            <asp:Label ID="lblRowId" runat="server" Text='<%# Eval("RowId")%>' Width="5px"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Purpose" ItemStyle-Width="50px">
                        <ItemTemplate>
                            <asp:Label ID="lblPurpose" runat="server" CssClass="font" Height="30px" 
                                ReadOnly="true" Text='<%# Eval("Purpose")%>' Width="200px"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="30px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Date" ItemStyle-Width="100px">
                        <ItemTemplate>
                            <asp:Label ID="lblFromDatevar" runat="server" CssClass="font" Height="30px" 
                                ReadOnly="true" Text='<%# Eval("FromDatevar")%>' Width="100px"></asp:Label>
                            <asp:Label ID="lblToDatevar" runat="server" CssClass="font" Height="30px" 
                                ReadOnly="true" Text='<%# Eval("ToDatevar")%>' Width="120px"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="100px" />
                    </asp:TemplateField>
                    <%-- <asp:TemplateField HeaderText="To Date" ItemStyle-Width="100px">
                            <ItemTemplate>
                               <center>
                                 <asp:Label ID="lblToDatevar" runat="server" Text='<%# Eval("ToDatevar")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:Label> 
                               </center> 
                            </ItemTemplate>
                        
                            <ItemStyle Width="100px" />
                        
                        </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="Days" ItemStyle-Width="80px">
                        <ItemTemplate>
                            <center>
                                <asp:Label ID="lblType" runat="server" CssClass="font" Height="30px" 
                                    ReadOnly="true" Text='<%# Eval("Type")%>' Visible="false" Width="120px"></asp:Label>
                                <asp:Label ID="Label7" runat="server" CssClass="font" ReadOnly="true" 
                                    Text='<% # Eval("Dayscount") %>'></asp:Label>
                            </center>
                        </ItemTemplate>
                        <ItemStyle Width="30px" />
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            </b>
        <br />
      
        </td>
       
    </tr>
    <tr>
        <td colspan="5" valign="top">
        
      
         
         
              <asp:Panel ID="pnlEdit" runat="server"  Visible="false"> 
            <div style="overflow:scroll;height:auto;">
               <asp:GridView ID="GridView2" runat="server" CellPadding="2" CellSpacing="2" 
                    AutoGenerateColumns="false" BackColor="LightGoldenrodYellow" BorderWidth="1px" BorderColor="Black" 
                    Font-Names="Book Antiqua" Font-Size="12px" ForeColor="Black"
                    GridLines="Both" onrowcancelingedit="CancelEdit"
                    onrowediting="EditCustomer" onrowupdating="UpdateCustomer" Width="630px">
                 <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                 <EditRowStyle ForeColor="Blue"  />
                    <Columns>
                     <asp:TemplateField Visible="false">
                            <ItemTemplate>
                               <asp:Label ID="lblRowId" Width="5px" runat="server" Text='<%# Eval("RowId")%>' ></asp:Label> 
                            </ItemTemplate>
                     </asp:TemplateField>
                        <asp:TemplateField HeaderText="Purpose" ItemStyle-Width="50px">
                            <ItemTemplate>
                              <asp:Label ID="lblPurpose" runat="server" Text='<%# Eval("Purpose")%>' Height="5px"
                                                Width="300px" ReadOnly="true" CssClass="font"></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                  <asp:TextBox ID="txtPurpose" runat="server" Text='<%# Eval("Purpose")%>' 
                                      Width="250px" BorderStyle="Solid" TextMode="MultiLine" Height="30px"></asp:TextBox> 
                            </EditItemTemplate>
                          
                            <ItemStyle Width="50px" />
                          
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="From date" ItemStyle-Width="100px">
                          
                            <ItemTemplate>
                              <center><asp:Label ID="lblFromDatevar" runat="server" Text='<%# Eval("FromDatevar")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:Label>  </center> 
                            </ItemTemplate>
                            
                              <EditItemTemplate>
                                  <asp:TextBox ID="txtFromDatevar" runat="server" 
                                      Text='<%# Eval("FromDatevar")%>' Width="100px"></asp:TextBox> 
                                      
                                        <cc1:CalendarExtender ID="txtFromDatevar_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtFromDatevar" >
                </cc1:CalendarExtender>
                                                       
                            </EditItemTemplate>
                        
                            <ItemStyle Width="100px" />
                        
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="To Date" ItemStyle-Width="100px">
                            <ItemTemplate>
                               <center> <asp:Label ID="lblToDatevar" runat="server" Text='<%# Eval("ToDatevar")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:Label> </center> 
                            </ItemTemplate>
                         <EditItemTemplate>
                                  <asp:TextBox ID="txtToDatevar" runat="server" Text='<%# Eval("ToDatevar")%>' Width="100px"></asp:TextBox>
                                  
                                  <cc1:CalendarExtender ID="txtToDatevar_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtToDatevar">
                </cc1:CalendarExtender>
                
                         </EditItemTemplate>
                            <ItemStyle Width="100px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Days Type" ItemStyle-Width="80px">
                            <ItemTemplate>
                               <center> <asp:Label ID="lblType" runat="server" Text='<%# Eval("Type")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:Label> </center> 
                            </ItemTemplate>
                            <EditItemTemplate>
                                  <asp:TextBox ID="txtType" runat="server" Text='<%# Eval("Type")%>' Width="83px"></asp:TextBox> 
                            </EditItemTemplate>
                            <ItemStyle Width="80px" />
                        </asp:TemplateField>
                       
                        <asp:CommandField ShowEditButton="True" ItemStyle-Width="50px" ControlStyle-Width="50px" ControlStyle-ForeColor="Blue" >
                            <ItemStyle Width="50px" />
                        </asp:CommandField>
                        <asp:TemplateField ItemStyle-Width="50px">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkRemove" runat="server" 
                                            CommandArgument='<%# Eval("RowId")%>'   
                                            CommandName="Delete" OnClick="DeleteCustomer" 
                                            OnClientClick="return confirm('Do you want to delete?')" Text="Delete" 
                                            Width="64px" Height="20px"></asp:LinkButton>
                                    </ItemTemplate>
                                   
                                    <ItemStyle Width="50px" />
                                   
                       </asp:TemplateField>
                       
                         
                        </Columns>
                         <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                           
                  
                </asp:GridView>
               </div> 
<%--            
--%></asp:Panel> 

        
        
        </td>
    </tr>
</table>

</asp:Panel>


  <asp:Panel ID="Panel2" runat="server" CssClass="contactpanelcss" Visible="false"> 
            <div style="overflow:scroll;height:300px;">
               </div> 
              
         </asp:Panel> 
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

