Hi all,
Hope doing well,
sir i am using modal popup to show gridview with paging but when i clicking on second page popup is getting hide.
how to make popup stable so i can get the second page also??
here is my code below:
<asp:UpdatePanel ID="UpModal" runat="server">
<ContentTemplate>
<asp:Panel ID="ShowHoliday" runat="server" Width="440px" style="display:none" CssClass="modalPopup">
<%-- <div style="height: 120px; overflow:auto; width:100%; text-align:center; background-color:White" >--%>
<table style="width:100%; height:180px">
<tr>
<td>
<asp:GridView ID="GridView3" OnRowDataBound="GridView3_RowDataBound" PageSize="10" runat="server" Font-Size="Smaller" CellPadding="2" OnPageIndexChanging="GridView3_PageIndexChanging1"
AllowPaging="true" ForeColor="Black" CellSpacing="1" Width="400px" AutoGenerateColumns="false" Visible="true"
BackColor="White">
<Columns>
<asp:BoundField DataField="HolidayName" HeaderText="Holiday Name"/>
<asp:BoundField DataField="HolidayDate" HeaderText="Holiday Date" DataFormatString="{0:dd-MM-yyyy}"/>
<asp:BoundField HeaderText="Day" />
</Columns>
<HeaderStyle HorizontalAlign="Center" />
<RowStyle HorizontalAlign="Center" />
</asp:GridView>
</td>
<td style="vertical-align:top">
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Common/images/CrossImage.jpg"/>
</td>
</tr>
</table>
<%-- </div>--%>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
<ajt:ModalPopupExtender ID="ModalPopupExtender2" BackgroundCssClass="modalBackground" PopupControlID="ShowHoliday" CancelControlID="ImageButton2" TargetControlID="Lnkholiday" runat="server">
</ajt:ModalPopupExtender>
and source code below:
protected void GridView3_PageIndexChanging1(object sender, GridViewPageEventArgs e)
{
ModalPopupExtender2.Show();
GridView3.PageIndex = e.NewPageIndex;
createdash1();
}
please help me in this
thanks