Jb Meris
Jb Meris

Reputation: 145

Change asp message box header / title

How can I change the title of my message box enter image description here

Here is my code-behind:

 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);

Upvotes: 0

Views: 612

Answers (1)

Sachin
Sachin

Reputation: 40970

No, You can't change that title. Alternatively you can use the jQuery alert/dialog box to achieve the same.

Upvotes: 4

Related Questions