Search code examples
c#javascript.netscriptmanagerclientscript

Unable to display alert


Actually,I tried showing an alert using ClientScript,But it is not showing .

My code :

ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('File Downloaded at Location C:\\VOWF-Downloads\\');", false);
System.Web.UI.ScriptManager.RegisterStartupScript(this, this.GetType(), "MsgBox", "File Downloaded at Location C:\\VOWF-Downloads\\", true);

Both the codes are not working :(


Solution

  • it's not possible to use RegisterStartupScript when devexpress controls execute callbacks.

    a possible workaround