Hi
I have modal popup in below User Control file. How i will call it on click of Delete button
C#
htmlTable.Append(" ");
------------------------
var swalInit = swal.mixin({
buttonsStyling: false,
confirmButtonClass: 'btn btn-primary',
cancelButtonClass: 'btn btn-light'
});
×
Cancel
DeleteThanks
Thanks

Gowtham CpRank #1,552 · 1K reputationPosted Aug 24, 2024, 1:37 AM EDT
To make the Delete button show the modal popup, just make sure your modal has the
id="modal_Delete"and keep the button as isModal: Add
id="modal_Delete"to your modal:Delete Button: Keep the button code:
htmlTable.Append("");This will make the Delete button trigger the modal smoothly.
Ramco RamcoRank #462 · 5.4K reputationPosted Aug 24, 2024, 2:10 AM EDT
Hi Gowtham
I am getting error - 'mbox_ascx' does not contain a definition for 'lnkRecordDelete_Click' and no accessible extension method 'lnkRecordDelete_Click' accepting a first argument of type 'mbox_ascx' could be found (are you missing a using directive or an assembly reference?)
Where should be defined .
Thanks