在asp里 消息框是 msg
在c#。net里 消息框是哪个函数啊?

解决方案 »

  1.   

    <script>alert('a');</script>
      

  2.   

    using System.Windows.Forms;DialogResult result = MessageBox.Show("显示的字符串");
      

  3.   

    还有没有其他的方法啊?我很讨厌这个script
      

  4.   

    Response.Write("<script>alert('你好')</script>");
      

  5.   

    Response.Write("<script>alert();</script>");
      

  6.   

    在asp.net中好像没有其他弹出窗口的方法
      

  7.   

    补充一下
    windows程序:DialogResult result = MessageBox.Show("显示的字符串");
    web程序:Response.Write("<script language='javascript'>");
    Response.Write("window.alert('显示的字符串);");
    Response.Write("</script>");
      

  8.   

    Response.Write("<script>alert();</script>");
      

  9.   

    web程序是在客户端弹出消息框,肯定要用到脚本语言吧