While trying to import data from an Excel file to a database using a Bootstrap file uploader, I encountered an issue when trying to display a success message to the user. The initial code I used was:
string strScript = "bootbox.alert('" + Resources.Resource.Success_SaveUserInfo + "');";
Page.ClientScript.RegisterStartupScript(this.GetType(), "UserSave", strScript, true);
Unfortunately, this code did not work as expected. Instead of displaying the alert, the page froze. However, when I switched to the following code snippet, it worked fine:
string strScript = "alert('" + Resources.Resource.Success_SaveUserInfo + "');";
Page.ClientScript.RegisterStartupScript(this.GetType(), "UserSave", strScript, true);
I want to mention that I have already included bootbox.min.js, so that does not seem to be the cause of the issue.