Ramco Ramco

Ramco Ramco

  • 419
  • 3.4k
  • 527.9k

User Control Modal Popup

Aug 25 2024 4:36 PM

Hi

  I have below modal Popup User Control.

In WebForm Department.aspx how to handle 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 (2)