ASP.NET 弹出对话框, 后台js脚本

ASP.NET 弹出对话框, 后台js脚本
            ScriptManager.RegisterStartupScript(ajaxPanel, ajaxPanel.GetType(), "", "alert('保存成功!');reftxt();", true);
            Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "<script>alert('保存成功!');</script>");

            // 弹出提示
            //Response.Write(" <Script Language=Javascript>alert('上传超限(500 × 500,500K)') </Script>");
            Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "<script>alert('上传超限(500 × 500,500K)');</script>");

            // 设置按钮可用
            RegisterStartupScript("", "<script>document.getElementById('ReleaseHaHaBntIn').disabled = false</script>");

            // 刷新UpdatePanel 中的js引用函数 <script>initImage();</script>
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "initImage();", true);


热门推荐