How to show MessageBox on asp.net?

前端 未结 9 1695
悲&欢浪女
悲&欢浪女 2020-12-10 15:21

if I need to show a MessageBox on my ASP.NET WebForm, how to do it?

I try: Messagebox.show(\"dd\");

But it\'s not working.

9条回答
  •  [愿得一人]
    2020-12-10 15:47

    You could just simply write but you have to use JavaScript regardless.

    Page.ClientScript.RegisterStartupScript(Page.GetType(), "Message Box", "");
    

提交回复
热议问题