I have an asp.net gridview in a javascript modal. If there are multiple pages in the gridview and I click on the next page (lets say 2 pages), the modal disappears. I want it to persist while the user pages though the list. Any help would be appreciated.
Javascript:
function ShowSelRecipModal(msgIndex, intGridNum) {
document.getElementById('hidMsgSelected').value = msgIndex;
document.getElementById('hidGridUsed').value = intGridNum;
Popup.showModal('modalSelRecipPopup', null, null, {
'screenColor': '#99ff99',
'screenOpacity': .6
});
return false;
}
HTML:
<div class="popUpForm" id="modalSelRecipPopup" style="border: 3px solid black; background-color: #ffffff; padding: 25px; display: none;">
<div class="popUpRow">
<asp:GridView ID="grdSelMsgList" runat="server" Width="400px" AllowPaging="True" PageSize="6" OnPageIndexChanging="grdSelMsgList_PageIndexChanging">
<AlternatingRowStyle BackColor="#CCFFCC" />
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="chkSelect" runat="server" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EditRowStyle BackColor="#FFCCCC" />
</asp:GridView>
</div>
<div class="popUpRow">
<asp:Label ID="Label3" runat="server" />
</div>
<asp:Button ID="btnSelRecip" runat="server" Text="OK" BackColor="White" ForeColor="Black" OnClick="btnSelRecip_Click" />
</div>