How to call window.alert(“message”); from C#?

后端 未结 10 2311
春和景丽
春和景丽 2021-02-07 05:18

I have my own exception based on some condition and want to raise an alert when control comes in this catch block

catch (ApplicationException ex)
{
    //want t         


        
10条回答
  •  情书的邮戳
    2021-02-07 06:13

    Simple use this to show the alert message box in code behind.

    ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "alert('Record Saved Sucessfully');", true);
    

提交回复
热议问题