You must Sign In to post a response.
  • Category: ASP.NET

    Modal pop up getting closed as the data loads. How to solve this issue.

    Dear Friends
    I have an modal popup window with 2 button.. when i click 1st button record will be display in popup window... now my problem is records are fetched as well as displayed but my popup is closed immediately.. how i can avoid this .
  • #764668

    Use AJAX Modal popup extender control, this will give you best result.

    Refer below sample design for the same.

    <asp:Button ID="btnShowPopup" Text="Show Popup" runat="server" Style="display: none" />
    <cc1:ModalPopupExtender ID="mpe" runat="server" TargetControlID="btnShowPopup"
    PopupControlID="pnlPopup" BackgroundCssClass="modalBackground">
    <asp:Panel ID="pnlPopup" runat="server" BackColor="White" Height="100px"
    Width="400px" Style="display: none">
    --design your popup table here--

    Hope this will helpful to you.

    If you still have any doubts refer below article

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

  • #764678
    Can you post the button click event code to have a quick look. Seems something is messed up in your code.

    Asheej T K

  • #764682
    Can you post your code so that we can help you better in order to resolve your issue.
    have you AJAXmodalPOPup control or Window.showModalDialog ? Please elaborate

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #764759
    Why can not you try the jquery Model Popup

    <html lang="en">
    <meta charset="utf-8">
    <title>jQuery UI Dialog - Default functionality</title>
    <link rel="stylesheet" href="//">
    <script src="//"></script>
    <script src="//"></script>
    <link rel="stylesheet" href="/resources/demos/style.css">
    $(function() {
    $( "#dialog" ).dialog();

    <div id="dialog" title="Basic dialog">
    <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>


    For more reference

    By Nathan
    Direction is important than speed

  • Sign In to post your comments