今天用jquery dialog 前台脚本调用时完全正常 但后台(asp.net)调用同一个脚本时却什么反应都没有!
具体代码如下:
1.前台JS
<script type="text/javascript">        function checkEmpty() {
            if ($("#<%=txtBrandName.ClientID %>").val() == "") {
                //这里调用是正常的
                alertMessage("请将信息输入完整!");
                return false;
            }
            return true;
        }
        //弹出dialog的方法
        function alertMessage(msg) {
            $("#dialog").dialog();
            $("#msgContent").text(msg);
            $("#dialog-message").dialog({
                modal: true,
                buttons: {
                    Ok: function() {
                        $(this).dialog('close');
                    }
                }
            });
        } 
    </script>2.html部分代码
    <div id="dialog-message" title="系统提示">
        <p id="msgContent">
        </p>
    </div>
3。后台asp.net关键代码:
......
//这里调用没反应
Page.ClientScript.RegisterStartupScript(this.GetType(), "OK", "alertMessage('品牌信息录入成功');", true);
......请教高手!