How do I display an alert message on my ASP .NET page?

This is not working:\[code\]try{ EnvironmentVerifier.VerifyAppFoldersAndFiles();}catch (Exception ex){ ClientScript.RegisterStartupScript(GetType(), "Error!", "alert('" + ex.Message + "');", true); Logger.LogError(ex.Source, ex.TargetSite.ToString(), ex.Message); return;}\[/code\]When the error occurs, it goes into the catch block but the alert message is not showing up. Am I missing anything?
 
Back
Top