中にエラーが発生したときに、情報エラーダイアログを開こうとしていますPage_Load。
ダイアログと、ダイアログを初期化するために必要な関数を次のように定義しました。
$(document).ready(function () {
    $('#errorDialog').dialog({
        autoOpen: false,
        height: 120,
        width: 500,
        draggable: false,
        resizable: false,
        modal: true,
        title: "Error!",
        open: function (type, data) {
            $(this).parent().appendTo("form");
        }
    });
});
function showErrorPopup() {
    $('#addNoteButton').hide();
    $('#errorDialog').dialog("open");
}
<div id="errorDialog">
    <asp:Label ID="errMessage" runat="server"></asp:Label>
    <input type="button" id="Button3" onclick="closeDialog('errorDialog');"
                class="inputASPButton" value="Zrušit" />
</div>
そして、私Page_Loadはこのようにそれを開きます:
Page.ClientScript.RegisterStartupScript(typeof(Page), UniqueID, "showErrorPopup();", true);
実行されると関数を呼び出し、$('#addNoteButton').hide();ボタンを非表示にしますが、ダイアログ自体は表示されません。
どんな助けでも大歓迎です。