Display MessageBox in ASP

前端 未结 4 583
面向向阳花
面向向阳花 2020-12-17 22:08

I am new to code and starting with ASP. How do I create a simple message box so I can alert the users on the web page?

4条回答
  •  遥遥无期
    2020-12-17 22:34

    If you want to do it from code behind, try this:

    System.Web.UI.ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "AlertBox", "alert('Message');", true);
    

提交回复
热议问题