Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 526.5k

Modal Popup

Aug 24 2024 6:24 AM

Hi

  I have below modal in User Control. How in the calling program it will be handled whether user has pressed Delete Button / Cancel Button

<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <h5 class="modal-title">
                <asp:Label ID="ltrlDelHead" Text="Are You Sure, You want to Delete This?" runat="server"></asp:Label>
            </h5>
            <button type="button" class="bootbox-close-button close" data-dismiss="modal" aria-hidden="true">×</button>
        </div>
        <div class="modal-body">
            <div class="bootbox-body">
                <div class="bootbox-form">
                    <!-- Dynamic content can be placed here if needed -->
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-link" data-dismiss="modal">Cancel</button>
            <asp:LinkButton ID="lnkRecordDelete" CssClass="btn bg-danger" runat="server" OnClick="lnkRecordDelete_Click">Delete</asp:LinkButton>
        </div>
    </div>
</div>

Thanks

 


Answers (3)