|
I added a few lines with JS, there are html controls in the line, after filling in the content, I click submit, but when there is a background execution fails, the status value -1 is returned, I use the following code to process:
if (resultNum == -1) {
strScript = "<script> alert ('Add failed!'); </ script>";
Page.ClientScript.RegisterStartupScript (this.GetType (), "Prompt", strScript);
return;
}
After the "Add failed!" Prompt box appeared, I clicked OK to close the dialog box, but the content added by JS was gone, how can I keep the content added by JS from disappearing? |
|