R
Robert Zurer
When I click a Button server control I want two things to happen.
The server returns a string array of error messages.
A Javascript alert appears showing the errors.
I can do this using the following method
public void ShowErrorWindow(string[] errors)
{
string alertString = null;
foreach(string str in errors)
alertString += str + "\\n";
string jscript = "<script language='JavaScript'>alert('" +
alertString + "');</script>";
RegisterClientScriptBlock("key", jscript);
}
The problem is that the page behind the alert dialog disappears and the
reappears when the dialog is closed. This is not the case when the alert
is generated client side.
Can anyone help on this.
Thanks
Robert Zurer
The server returns a string array of error messages.
A Javascript alert appears showing the errors.
I can do this using the following method
public void ShowErrorWindow(string[] errors)
{
string alertString = null;
foreach(string str in errors)
alertString += str + "\\n";
string jscript = "<script language='JavaScript'>alert('" +
alertString + "');</script>";
RegisterClientScriptBlock("key", jscript);
}
The problem is that the page behind the alert dialog disappears and the
reappears when the dialog is closed. This is not the case when the alert
is generated client side.
Can anyone help on this.
Thanks
Robert Zurer