Hello all
No problem in the code The code works very well and gridview filled with data.
but when i add ScriptManager UpdatePanel on the page like the Below code and click to run the code the updateProgress start with the image normaly For some minutes and Then it disappears as if nothing happened
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdateProgress ID="updateProgress" runat="server" DynamicLayout="true">
<ProgressTemplate>
<div style="position: fixed; top: 0px; bottom: 0px; left: 0px; right: 0px; overflow: hidden; padding: 0; margin: 0; background-color: #F0F0F0; filter: alpha(opacity=50); opacity: 0.5; z-index: 100000;"></div>
<div style="position: fixed; top: 50%; left: 35%; height: 20%; width: 20%; z-index: 100001; background-repeat: no-repeat; background-position: center;">
<img alt="" src="Images/Gif/loading5.gif" style="height: 128px; width: 128px;" />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
<ContentTemplate>
<table style="width: 100%">
<tr>
<td style="width: 20%">المقر الدراسي</td>
<td style="width: 75%">
<asp:DropDownList ID="ddl_campus" runat="server" AppendDataBoundItems="true" Font-Names="Tahoma" Font-Size="14pt" CssClass=" form-control" ValidationGroup="search">
<asp:ListItem Text="All" Value="0"></asp:ListItem>
</asp:DropDownList>
</td>
<td style="width: 5%">
<asp:RequiredFieldValidator ControlToValidate="ddl_campus" ID="RequiredFieldValidator1" runat="server" ErrorMessage="اختر المقر" ValidationGroup="search" Text="*" InitialValue="0"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 20%">عدد الساعات المتبقية</td>
<td style="width: 75%">
<asp:TextBox ID="txt_Total_motabaky" runat="server" Text="" Font-Names="Tahoma" Font-Size="14pt" CssClass=" form-control" ValidationGroup="search" AutoComplete="off" Class="radius"></asp:TextBox>
</td>
<td style="width: 5%">
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txt_Total_motabaky" ErrorMessage="هذا الحقل لا يقبل إلا ارقام فقط" ForeColor="Red" ValidationExpression="^[0-9]*$" ValidationGroup="search">* </asp:RegularExpressionValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_Total_motabaky" ErrorMessage="نامل ادخال عدد الساعات المتبقية" ValidationGroup="search">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 20%"></td>
<td style="width: 75%">
<asp:Button ID="btn_search" CssClass="btn btn-outline-blue" Width="300px" Height="45px" runat="server" Text="بحث" ValidationGroup="search" />
</td>
<td style="width: 5%"></td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
<asp:Panel ID="Panel1" runat="server" Visible="false">
<hr />
<table style="width: 100%">
<tr>
<td style="width: 20%"></td>
<td style="width: 75%">
<asp:Button ID="btn_export_ST" CssClass="btn btn-green" runat="server" Text="تصدير بيانات الطلاب والساعات المتبقية" Width="450px" Height="50px" />
</td>
<td style="width: 5%"></td>
</tr>
<tr>
<td style="width: 20%"></td>
<td style="width: 75%">
<asp:Button ID="btn_export_Courses" CssClass="btn btn-grey" runat="server" Text="تصدير بيانات الطلاب المقررات المتبقية" Width="450px" Height="50px" />
</td>
<td style="width: 5%"></td>
</tr>
</table>
<hr />
<asp:GridView ID="gv1" runat="server" AutoGenerateColumns="False" CssClass="mygrdContent grid" PagerStyle-CssClass="pager" HeaderStyle-CssClass="header" RowStyle-CssClass="rows" Width="100%">
<Columns>
<asp:BoundField DataField="STUDENT_ID" HeaderText="الرقم الاكاديمي">
<ItemStyle Font-Size="12pt" />
</asp:BoundField>
<asp:BoundField DataField="Full_name" HeaderText="اسم الطالب">
<ItemStyle Font-Size="12pt" />
</asp:BoundField>
<asp:BoundField DataField="CAMPUS_NAME" HeaderText="المقر">
<ItemStyle Font-Size="12pt" />
</asp:BoundField>
<asp:BoundField DataField="MAJOR_NAME" HeaderText="التخصص">
<ItemStyle Font-Size="12pt" />
</asp:BoundField>
<asp:BoundField DataField="STATUS_DESC" HeaderText="الحالة الاكاديمية" />
<asp:BoundField DataField="Total_Motabky" HeaderText="الساعات المتبقية" />
</Columns>
<HeaderStyle CssClass="header"></HeaderStyle>
<PagerStyle CssClass="pager"></PagerStyle>
<RowStyle CssClass="rows"></RowStyle>
</asp:GridView>
<hr />
<asp:GridView ID="gv2" runat="server" AutoGenerateColumns="False" CssClass="mygrdContent grid" PagerStyle-CssClass="pager" HeaderStyle-CssClass="header" RowStyle-CssClass="rows" Width="100%">
<Columns>
<asp:BoundField DataField="STUDENT_ID" HeaderText="الرقم الاكاديمي">
<ItemStyle Font-Size="12pt" />
</asp:BoundField>
<asp:BoundField DataField="Full_name" HeaderText="اسم الطالب">
<ItemStyle Font-Size="12pt" />
</asp:BoundField>
<asp:BoundField DataField="CAMPUS_NAME" HeaderText="المقر">
<ItemStyle Font-Size="12pt" />
</asp:BoundField>
<asp:BoundField DataField="MAJOR_NAME" HeaderText="التخصص">
<ItemStyle Font-Size="12pt" />
</asp:BoundField>
<asp:BoundField DataField="COURSE_CODE" HeaderText="كود المقرر">
<ItemStyle Font-Size="12pt" />
</asp:BoundField>
</Columns>
<HeaderStyle CssClass="header"></HeaderStyle>
<PagerStyle CssClass="pager"></PagerStyle>
<RowStyle CssClass="rows"></RowStyle>
</asp:GridView>
</asp:Panel>