JSFiddle - React, Tailwind, and code Playground
HTML
<div id="dlg">
<asp:UpdatePanel ID="upNewUpdatePanel" runat="server">
<ContentTemplate>
<asp:Label ID="updateLabel" runat="server"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</div>
JavaScript
$("#dlg").dialog({
autoOpen: false,
bgiframe: true,
width: 500,
modal: true,
closable: true,
buttons: {
Close: function () {
$(this).dialog('close');
}
}
});
$("#dlg").parent().appendTo($("form:first"));
function openDialog() {
$('#dlg').dialog('open')
return false;
}