How to solve popup is disabled when clicking gridview paging

Posted by Kirubakaranb.Tech under ASP.NET on 12/18/2013 | Points: 10 | Views : 5206 | Status : [Member] | Replies : 6
Popup is disabled when i clicking gridview next page how to solve this problem in asp.net




Responses

Posted by: Samirbhogayta on: 12/18/2013 [Member] Starter | Points: 25

Up
0
Down
hi.. go through this example

<asp:Button ID="hiddenButton" runat="server" Text="" style="display:none;" />
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" Enabled="True" TargetControlID="hiddenButton" PopupControlID="upModal" BehaviorID="modalbehavior" BackgroundCssClass="modalBackground" OnCancelScript="cancelClick();" CancelControlID="closePopup">
</ajaxToolkit:ModalPopupExtender>

<asp:UpdatePanel runat="server" ID="upModal" UpdateMode="Conditional">
<ContentTemplate>

<asp:Panel id="pnlPopup" runat="server" class="ModalPanel" >

<table cellpadding="5" cellspacing="5" class="topBanner" style="width:100%;">
<tr>
<td width="50">
<asp:LinkButton ID="closePopup" runat="server" onclick="LinkButton1_Click" CssClass="ClosePopupCls">Close
[x]</asp:LinkButton>
</td>
<td align="center">
<asp:Label ID="lbl" runat="server" Text="Status"></asp:Label>
</td>
<td width="25">
</td>
</tr>
<tr>
<td colspan="3">
<asp:GridView ID="gvRecords" runat="server" AllowPaging="True"
BackColor="White" EmptyDataText="No Record Found"
EnableSortingAndPagingCallbacks="True" ForeColor="GrayText" Height="600"
onpageindexchanging="gvRecords_PageIndexChanging" Width="800">
</asp:GridView>
</td>
</tr>
</table>
</asp:Panel>

</ContentTemplate>
</asp:UpdatePanel>

SAMIR
Sr. Software Engineer

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 12/18/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Which popup window are you talking about?
Is your popup window inside Gridview or do you open any popup on click of button which is inside gridview?

Please post your code.

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 12/18/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Hi,

If you keep modalpopupextender outside of update panel then
Please keep your modalpopupextender inside update panel.then it will work.

Also do one more thing:-
write:

updatepanel1.Update() in page index changing if you have taken conditional mode.


Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 12/18/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Hi Kirubakaranb.Tech,
Did you find solutions?

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kirubakaranb.Tech on: 12/18/2013 [Member] Starter | Points: 25

Up
0
Down
sorry i don't get answer

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 12/18/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Please post you code.So that i can tell you the problem and answer.

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response