Hi
I have below code in Department.aspx. How i will pass Id & Table Name to Delete Modal which is User Control
string deleteAttributes = Status == "Blocked" ? "style='pointer-events: none; opacity: 0.5;' onclick='return false;'" : "data-toggle='modal' data-target='#modal_Delete' onclick='BindData(this);'"; htmlTable.Append($"<a id='btnDel' class='list-icons-item text-danger-600' {deleteAttributes}><i class='icon-bin mr-1'></i></a>");
<div id="modal_Delete" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title"> <asp:Label ID="Label1" 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"> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-link" data-dismiss="modal">Cancel</button> <asp:LinkButton ID="lnkDelete" class="btn bg-danger" runat="server" OnClick="lnkRecordDelete_Click">Delete</asp:LinkButton> </div> </div> </div> </div>
Thanks