Hello,
When i try using 2 update panels, the second not working, btw I am using 2 Cascading DropDownList
From the screen shoot number 2 from arrow when i select something must show/display button
Here the problem
HTML
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="margin-left: auto; margin-right: auto;">
<asp:Label ID="Ipasscivilid" runat="server" Text="Label" BackColor="White" ForeColor="White"></asp:Label>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<strong>
<asp:SqlDataSource ID="SqlDataSource8" runat="server" ConnectionString="<%$ ConnectionStrings:cmConnectionString %>" SelectCommand="SELECT * FROM [Table_vacationlist]"></asp:SqlDataSource>
</strong>
<br />
<table style="border-color: #000000; border-style: solid;" align="center" dir="rtl" class="auto-style202">
<tr style="border-color: #000000; border-style: solid">
<td class="auto-style198" style="border-width: medium; border-style: solid solid none solid; border-color: #000000; vertical-align: top;" rowspan="3">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="id" DataSourceID="date" GridLines="None" Width="252px" AllowPaging="True">
<AlternatingRowStyle BackColor="Gainsboro" />
<Columns>
<asp:TemplateField HeaderText="م">
<ItemTemplate>
<asp:Label ID="lblRowNumber" Text='<%# Container.DataItemIndex + 1 %>' runat="server" />
</ItemTemplate>
<ItemStyle Width="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="العطل الرسمية">
<ItemTemplate>
<asp:Label ID="lblStates" runat="server" Text='<%# Eval("BirthDate" ,"{0: ddd yyyy/MM/dd}")%>' Font-Size="Medium"></asp:Label>
<br />
<asp:Label ID="Label3malv" runat="server" Text='<%# Eval("description") %>' Font-Size="Medium"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" Height="70px" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<RowStyle BackColor="#EEEEEE" ForeColor="Black" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#0000A9" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#000065" />
</asp:GridView>
<asp:SqlDataSource ID="date" runat="server" ConnectionString="<%$ ConnectionStrings:cmConnectionString %>" SelectCommand="SELECT * FROM [Employees] ORDER BY [BirthDate] desc"></asp:SqlDataSource>
</td>
<td class="auto-style198" style="border-width: medium; border-style: solid solid none solid; border-color: #000000; vertical-align: top;" rowspan="3"></ContentTemplate>
</asp:UpdatePanel>
<table border="1" cellpadding="1" cellspacing="1" class="auto-style195">
<tr>
<th class="auto-style153" dir="rtl" style="border: medium solid #000000;">بيانات الموظف</th>
</tr>
<tr>
<td class="BG-image" style="border: medium solid #000000;">
<strong class="auto-style76">
<asp:TextBox ID="txtUsername" runat="server" placeholder="الاسم" Style="text-align: center" Font-Names="Arial" CssClass="auto-style38" BorderStyle="None" Width="100%" />
</strong>
</td>
</tr>
<tr>
<td class="auto-style172" style="border: medium solid #000000;">
<strong>
<asp:TextBox ID="joptitel" runat="server" placeholder="الوظيفة" Style="text-align: center" Font-Names="Arial" CssClass="auto-style38" BorderStyle="None" Width="100%" />
</strong>
</td>
</tr>
<tr>
<td style="border: medium solid #000000;">
<strong>
<asp:TextBox ID="civilid" runat="server" placeholder="الرقم المدني" Style="text-align: center" Font-Names="Arial" CssClass="auto-style38" BorderStyle="None" Width="100%" />
</strong>
</td>
</tr>
<tr>
<td style="border: medium solid #000000;">
<strong>
<asp:TextBox ID="filenumber" runat="server" placeholder="رقم الملف" Style="text-align: center" Font-Names="Arial" CssClass="auto-style38" BorderStyle="None" Width="100%" />
</strong>
</td>
</tr>
<tr>
<td style="border: medium solid #000000;">
<strong>
<asp:TextBox ID="eldarajah" runat="server" placeholder="الدرجة" Style="text-align: center" Font-Names="Arial" CssClass="auto-style38" BorderStyle="None" Width="100%" />
</strong>
</td>
</tr>
<tr>
<td style="border: medium solid #000000;">
<strong __designer:mapid="d">
<asp:DropDownList ID="ddlCountries" runat="server" AutoPostBack="true" BackColor="#FFFFCC" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" OnSelectedIndexChanged="Country_Changed" Width="250px">
</asp:DropDownList>
</strong>
</td>
</tr>
<tr>
<td style="border: medium solid #000000;">
<strong __designer:mapid="11">
<asp:DropDownList ID="ddlStates" runat="server" AutoPostBack="true" BackColor="#FFFFCC" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" OnSelectedIndexChanged="State_Changed" Width="250px">
</asp:DropDownList>
</strong>
</td>
</tr>
<tr>
<td style="border: medium solid #000000;">
<strong __designer:mapid="14">
<asp:DropDownList ID="ddlCities" runat="server" BackColor="#FFFFCC" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Width="250px">
</asp:DropDownList>
</strong>
</td>
</tr>
<tr>
<td style="border: medium solid #000000;">
<asp:Button ID="updateinfo" runat="server" BackColor="#99CCFF" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Height="40px" OnClick="updateinfo_Click" Text="تحديث بيانات الموظف" Width="100%" />
</td>
</tr>
</table>
</td>
<td valign="top" style="border-style: solid; border-color: #000000" class="auto-style204">
<asp:TextBox ID="txtSearch" runat="server" AutoPostBack="True" BackColor="#FFFFCC" Font-Bold="True" Font-Names="Arial" Font-Size="X-Large" Height="31px" OnTextChanged="txtSearch_TextChanged" placeholder="الاسم / رقم المدنى" Style="text-align: center" Width="300px"></asp:TextBox>
<ajaxtoolkit:autocompleteextender id="AutoCompleteExtender1" runat="server" completioninterval="100" completionsetcount="10" enablecaching="false" firstrowselected="false" minimumprefixlength="2" servicemethod="SearchCustomers" targetcontrolid="txtSearch">
</ajaxtoolkit:autocompleteextender>
<asp:Button ID="Button33" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" CssClass="button" Font-Bold="True" Font-Names="Arial" Height="35px" OnClick="Search" Text="بجث" Width="99px" />
<asp:DropDownList ID="ddlYear" runat="server" CssClass="auto-style38" Height="30px">
<asp:ListItem Text="All" Value="0" Selected="True" />
<asp:ListItem Text="2018" Value="1" />
<asp:ListItem Text="2019" Value="2" />
<asp:ListItem Text="2020" Value="3" />
<asp:ListItem Text="2021" Value="4" />
<asp:ListItem Value="5">2022</asp:ListItem>
<asp:ListItem Value="6">2023</asp:ListItem>
<asp:ListItem Value="7">2024</asp:ListItem>
<asp:ListItem Value="8">2025</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr style="border-color: #000000; border-style: solid">
<td valign="top" style="border-style: solid; border-color: #000000" class="auto-style204">
<strong>
<asp:DropDownList ID="ddlvac" runat="server" AutoPostBack="true" CssClass="auto-style197" Height="35px" OnSelectedIndexChanged="ddlvac_SelectedIndexChanged" Width="250px">
</asp:DropDownList>
</strong>
<strong>
<asp:DropDownList ID="ddlvacastats" runat="server" AutoPostBack="true" CssClass="auto-style197" Height="35px" Width="250px" OnSelectedIndexChanged="ddlvacastats_SelectedIndexChanged">
</asp:DropDownList>
</strong>
</td>
</tr>
<tr style="border-color: #000000; border-style: solid">
<td valign="top" style="border-style: solid; border-color: #000000">
<%-- الموظفين اجازة--%>
<div class="BG-image">
<table style="padding: inherit; border: medium solid #000000; color: #000000; background-color: #FFFFCC; font-family: Arial, Helvetica, sans-serif; font-size: medium;" class="auto-style200">
<tr class="auto-style157">
<td class="auto-style199">
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Text="تاريخ اليوم"></asp:Label>
</td>
<td style="border-style: solid; border-color: #000000;" class="auto-style201">
<asp:TextBox ID="txtBoxDate7" runat="server" AutoPostBack="True" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Style="text-align: center" BackColor="#FFFFCC" BorderColor="#FFFFCC" Width="150px"></asp:TextBox>
</td>
<td class="auto-style158" style="border-style: solid; border-color: #000000;">
<cc1:combobox id="ddlPC" runat="server" autocompletemode="SuggestAppend" datasourceid="SqlDataSource8" datatextfield="name" datavaluefield="name" height="20px" appenddatabounditems="True" maxlength="0" style="display: inline; font-size: medium;" font-size="Large">
<asp:ListItem Selected="True">الدورية</asp:ListItem>
</cc1:combobox>
</td>
</tr>
<tr class="auto-style157">
<td class="auto-style160">
<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Text="بداية الاجازه"></asp:Label>
</td>
<td style="border-style: solid; border-color: #000000;" class="auto-style201">
<asp:TextBox ID="txtBoxDate8" runat="server" AutoPostBack="True" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Style="text-align: center" ForeColor="Blue" BackColor="#FFFFCC" BorderColor="#FFFFCC" OnTextChanged="txtBoxDate8_TextChanged" Width="150px"></asp:TextBox>
</td>
<td class="auto-style158" style="border-style: solid; border-color: #000000;">
<asp:Button ID="ButtonLocations" runat="server" BackColor="#666666" Font-Bold="True" Font-Names="Arial" Font-Size="Large" ForeColor="White" OnClick="ButtonLocations_Click" Text="اضافة نوع الاجازة" Width="150px" />
</td>
</tr>
<tr>
<td style="border-style: solid; border-color: #000000" class="auto-style166">
<asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Text="نهاية الاجازه"></asp:Label>
</td>
<td style="border-style: solid; border-color: #000000;" class="auto-style201">
<asp:TextBox ID="txtBoxDate10" runat="server" AutoPostBack="True" Font-Bold="True" Font-Names="Arial" Font-Size="Large" ForeColor="Red" Style="text-align: center" BackColor="#FFFFCC" BorderColor="#FFFFCC" OnTextChanged="txtBoxDate10_TextChanged" Width="150px"></asp:TextBox>
</td>
<td class="auto-style154" style="border-style: solid; border-color: #000000;">
<asp:Label ID="lblLabel2" runat="server" BorderStyle="None" ForeColor="Red" Height="18px" Width="37px">0</asp:Label>
</td>
</tr>
</table>
<asp:Panel ID="PanelVback" runat="server" Visible="False">
<table class="auto-style200">
<tr>
<td class="auto-style163" style="border-style: solid; border-color: #000000">
<asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Text="تاريخ المباشرة"></asp:Label>
</td>
<td style="border-style: solid; border-color: #000000;">
<asp:TextBox ID="txtBoxDate11" runat="server" AutoPostBack="True" BackColor="#FFFFCC" BorderColor="#FFFFCC" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Style="text-align: center" Width="150px"></asp:TextBox>
</td>
<td class="auto-style194" style="border-style: solid; border-color: #000000;"> </td>
</tr>
<tr>
<td class="auto-style161">
<asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Text="ملاحظات الاجازة"></asp:Label>
</td>
<td style="border-style: solid; border-color: #000000;" class="auto-style158" colspan="2">
<strong>
<asp:TextBox ID="textmsg" runat="server" BorderStyle="None" CssClass="auto-style170" placeholder="ملاحظات الاجازة" TextMode="MultiLine" BorderColor="#FFFFCC">لايوجد</asp:TextBox>
</strong>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="PanelVupdate" runat="server" Visible="False" Width="654px">
<table>
<tr>
<td style="border-style: solid; border-color: #000000" class="auto-style164">
<asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Text="نهاية تمديد الاجازة"></asp:Label>
</td>
<td style="border-style: solid; border-color: #000000;" class="auto-style191">
<asp:TextBox ID="dataupdate" runat="server" AutoPostBack="True" Font-Bold="True" Font-Names="Arial" Font-Size="Large" Style="text-align: center" OnTextChanged="txtBoxDate7_TextChanged" BackColor="#FFFFCC" BorderColor="#FFFFCC" Width="150px"></asp:TextBox>
</td>
<td class="auto-style192" style="border-style: solid; border-color: #000000;">
<br />
</td>
</tr>
</table>
</asp:Panel>
<asp:RadioButtonList ID="rbFormat" runat="server" RepeatDirection="Horizontal" Width="100%" BackColor="#151B3D" Font-Size="Small" ForeColor="White" Visible="False">
<asp:ListItem Text="PDF" Value="PDF" Selected="True" />
<asp:ListItem Text="Word" Value="WORD" />
<asp:ListItem Text="Excel" Value="EXCEL" />
<asp:ListItem Text="Image" Value="IMAGE" />
</asp:RadioButtonList>
<asp:Panel ID="Panel1" runat="server">
<asp:Button ID="OnConfirm" runat="server" CssClass="button" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Height="100%" OnClick="Insert2" Text="اقرار عودة" Width="100%" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" Visible="False" />
<asp:Button ID="btnvacationop" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" CssClass="button" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Height="100%" OnClick="btnvacationop_Click" Text="اقرار عودة للاشرافيين" Visible="False" Width="100%" />
<asp:Button ID="btnvacationboss" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" CssClass="button" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Height="100%" Text="اقرار عودة للمدير" Visible="False" Width="100%" OnClick="btnvacationboss_Click" />
<asp:Button ID="btnvacationboss2" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" CssClass="button" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Height="100%" Text=" اقرار عودة وكيل القطاع" Visible="False" Width="100%" OnClick="btnvacationboss2_Click" />
</asp:Panel>
<asp:Panel ID="Panel2" runat="server">
<asp:Button ID="vacamore1" runat="server" CssClass="button" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Height="100%" OnClick="vacamore1_Click" Text="تمديد إجازة" Width="100%" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" Visible="False" />
<asp:Button ID="vacamore2" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" CssClass="button" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Height="100%" OnClick="vacamore2_Click" Text="تمديد إجازة للاشرافيين" Visible="False" Width="100%" />
<asp:Button ID="vacamore3" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" CssClass="button" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Height="100%" Text="تمديد إجازة للمدير" Visible="False" Width="100%" OnClick="vacamore3_Click" />
<asp:Button ID="vacamore4" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" CssClass="button" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Height="100%" Text=" تمديد إجازة وكيل القطاع" Visible="False" Width="100%" OnClick="vacamore4_Click" />
</asp:Panel>
</div>
</td>
</tr>
</table>
</div>
<br />
<div style="margin: 0 auto 0 auto;" class="auto-style205">
<strong>
<asp:GridView ID="gvFiles" runat="server"
AutoGenerateColumns="False" DataKeyNames="Id"
OnRowDataBound="OnRowDataBound" OnRowEditing="OnRowEditing" OnRowCancelingEdit="OnRowCancelingEdit" OnRowUpdating="OnRowUpdating" OnRowDeleting="OnRowDeleting" CellPadding="3" OnRowCommand="GridView1_RowCommand" Width="100%" BackColor="White" BorderColor="#0E5297" BorderStyle="Solid" BorderWidth="5px" ForeColor="Black" EnablePersistedSelection="True" HorizontalAlign="Center">
<AlternatingRowStyle BackColor="#C7E0F1" />
<Columns>
<asp:TemplateField HeaderText="م">
<ItemTemplate>
<asp:Label ID="lblRowNumber" Text='<%# Container.DataItemIndex + 1 %>' runat="server" />
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="الاسم">
<ItemTemplate>
<asp:Label ID="lblidnamev" runat="server" Text='<%# Eval("idnamev") %>'></asp:Label>
<br />
<asp:Label ID="lblidcivilv" runat="server" Text='<%# Eval("idcivilv") %>' Font-Size="Small"></asp:Label>
<br />
<asp:Label ID="lblijop" runat="server" Text='<%# Eval("jop") %>' Font-Size="Small"></asp:Label>
</ItemTemplate>
<ItemStyle Width="250px" HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField HeaderText="الادارة / القسم">
<ItemTemplate>
<asp:Label ID="lblStates" runat="server" Text='<%# Eval("States") %>' Font-Size="Medium"></asp:Label>
<br />
<asp:Label ID="Label3malv" runat="server" Text='<%# Eval("el3malv") %>' Font-Size="Medium"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="تاريخ المباشرة">
<ItemTemplate>
<asp:Label ID="lbdateback" runat="server" Text='<%# Eval("vacationdataback", "{0:yyyy/MM/dd}")%>' Font-Size="Medium"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="تاريخ الطلب">
<ItemTemplate>
<asp:Label ID="lblBoxDate31" runat="server" Text='<%# Eval("vacationdata", "{0:yyyy/MM/dd}")%>' Font-Size="Medium"></asp:Label>
<br />
<asp:Label ID="Labnamevacation" runat="server" Text='<%# Eval("namevacation") %>' Font-Size="Medium" ForeColor="Red"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtBoxDate31" runat="server" Text='<%# Eval("vacationdata", "{0:ddd yyyy/MM/dd}") %>' TextMode="Date" Font-Size="Medium"></asp:TextBox>
</EditItemTemplate>
<ItemStyle Width="150px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="بداية الاجازة">
<ItemTemplate>
<asp:Label ID="lbldate" runat="server" Text='<%# Eval("datestart", "{0:yyyy}") %>' ForeColor="White" Font-Size="1"></asp:Label>
<br>
<asp:Label ID="lbldate2" runat="server" Text='<%# Eval("datestart", "{0:ddd yyyy/MM/dd}") %>' Font-Size="Medium"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtBoxDate5" runat="server" Text='<%# Eval("datestart", "{0:yyyy-MM-dd}") %>' TextMode="Date" Font-Size="Medium"></asp:TextBox>
</EditItemTemplate>
<ControlStyle Width="90px" />
<ItemStyle Width="60px" HorizontalAlign="Center" ForeColor="Blue"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="نهابة الاجازة">
<ItemTemplate>
<asp:Label ID="lbltime" runat="server" Text='<%# Eval("dateend", "{0:ddd yyyy/MM/dd}") %>' Font-Size="Medium"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtBoxDate6" runat="server" Text='<%# Eval("dateend", "{0:yyyy-MM-dd}") %>' TextMode="Date" Font-Size="Medium"></asp:TextBox>
</EditItemTemplate>
<ControlStyle Width="90px" />
<ItemStyle Width="60px" HorizontalAlign="Center" ForeColor="Red"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="مدة الاجازة">
<ItemTemplate>
<asp:Label ID="lbltota" runat="server" Text='<%# Eval("totalva") %>' Font-Size="Medium"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txttotalva" runat="server" Text='<%# Eval("totalva") %>' ForeColor="Red" TextMode="Number"></asp:TextBox>
</EditItemTemplate>
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center" ForeColor="Red" Width="80px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="إجازة" Visible="False">
<EditItemTemplate>
<asp:DropDownList ID="txtDropDownListinfo" runat="server" SelectedValue='<%# Bind("namevacation") %>'>
<asp:ListItem></asp:ListItem>
<asp:ListItem Value="دورية">إجازة دورية</asp:ListItem>
<asp:ListItem Value="إضطرارية">إجازة دورية (إضطرارية)</asp:ListItem>
<asp:ListItem Value="مرضية">إجازة مرضية</asp:ListItem>
<asp:ListItem>وضع</asp:ListItem>
<asp:ListItem>حجر صحي</asp:ListItem>
<asp:ListItem>رضاعة</asp:ListItem>
<asp:ListItem>حج</asp:ListItem>
<asp:ListItem>امومه</asp:ListItem>
<asp:ListItem>تمديد إجازه دورية</asp:ListItem>
<asp:ListItem>تعديل إجازه دورية</asp:ListItem>
<asp:ListItem>تفرغ رياضي</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblDropDownListinfo" runat="server" Text='<%# Eval("namevacation") %>'></asp:Label>
<br />
<asp:Label ID="lblDropDownListVaca" runat="server" ForeColor="White" Font-Size="1" Text='<%# Eval("namevacation") %>'></asp:Label>
<br />
<asp:Button ID="btnNewWindow2" runat="server" Text="Print" OnClick="OpenWindow2" CommandArgument="<%# Container.DataItemIndex %>" BackColor="#FFFFCC" Visible='<%# Eval("namevacation").ToString() == "اقرار عودة" ? true : false %>'></asp:Button>
<asp:Button ID="Button5" runat="server" Text="Print" CommandArgument="<%# Container.DataItemIndex %>" BackColor="Lime" Visible='<%# Eval("namevacation").ToString() == "اقرار عودة المدير" ? true : false %>'></asp:Button>
<asp:Button ID="Button1" runat="server" Text="Print" CommandArgument="<%# Container.DataItemIndex %>" BackColor="#CCCCFF" Visible='<%# Eval("namevacation").ToString() == "اقرار عودة للاشرافيين" ? true : false %>'></asp:Button>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="المرفقات" Visible="False">
<ItemTemplate>
<asp:LinkButton ID="lnkDownload" runat="server" Text="Download" OnClick="DownloadFile"
CommandArgument='<%# Eval("Id") %>' Visible='<%# !string.IsNullOrEmpty(Eval("Name").ToString()) ? true : false %>'></asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:FileUpload ID="fuFile" runat="server" />
</EditItemTemplate>
<ControlStyle Width="120px" />
<ItemStyle HorizontalAlign="Center" Width="120px" />
</asp:TemplateField>
<asp:CommandField ButtonType="Link" ShowEditButton="true" ShowDeleteButton="true" HeaderText="تعديل"
HeaderStyle-HorizontalAlign="Center" Visible="False">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Width="70px" />
</asp:CommandField>
</Columns>
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" Font-Size="14pt" BorderStyle="Solid" BorderWidth="2px" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<RowStyle BackColor="White" ForeColor="Black" BorderStyle="Solid" BorderWidth="2px" BorderColor="#0E5297" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#0000A9" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#000065" />
</asp:GridView>
</strong>
<rsweb:reportviewer id="ReportViewer1" runat="server" width="500" sizetoreportcontent="true" visible="False" showtoolbar="False">
</rsweb:reportviewer>
</div>
</asp:Content>