Hi
I have modal popup in below User Control file. How i will call it on click of Delete button
htmlTable.Append(" ");
------------------------
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MBox.ascx.cs" Inherits="Payroll.MBox" %>
Thanks
Thanks
Ramco RamcoPosted Aug 24, 2024, 6:10 AM
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
Gowtham CpPosted Aug 24, 2024, 5:37 AM
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:
This will make the Delete button trigger the modal smoothly.