弹框提示
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"
onasyncpostbackerror="ScriptManager1_AsyncPostBackError">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button ID="Button1" runat="server" Text="触发错误按钮" onclick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
String strAlertMess=
"var dialog = art.dialog
({ title: '" + strTitle + "',
content: '" + strAlert + "',
icon: 'error',
drag: false,
resize: false,
lock: true,
dblclick_hide: false,
ok: function () { }
});";
ScriptManager.RegisterStartupScript(this, GetType(), "", strAlertMess, true);