User1769015664 posted
Is there a way to modify the following code to bring up a custom alert without the default title "localhost:12354 says" and the box in color?
public void ShowMessageBox(Page page, string message)
{
Type cstype = page.GetType();
ClientScriptManager cs = page.ClientScript;
int ScriptNumber = 0;
bool ScriptRegistered = false;
do
{
ScriptNumber++;
ScriptRegistered = cs.IsStartupScriptRegistered(cstype, "PopupScript" + ScriptNumber);
} while (ScriptRegistered == true);
cs.RegisterStartupScript(cstype, "PopupScript" + ScriptNumber, "alert('" + message + "');", true);