更改asp消息框标题/标题

时间:2013-11-12 09:49:31

标签: asp.net messagebox

如何更改消息框的标题 enter image description here

这是我的代码隐藏:

 string myStringVariable1 = string.Empty;
                    myStringVariable1 = "Policy Number:" + "  " + txtPolNo.Text.ToString() + "  " + "with Issuance office:" + "  " + dropIssOff.Text.ToString() + "  " + "was not found on the database. Please make sure that your inputs are correct.";
                    ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + myStringVariable1 + "');", true);

1 个答案:

答案 0 :(得分:4)

不,你不能改变那个头衔。或者,您可以使用jQuery alert/dialog box来实现相同目标。

相关问题