改成Response.Write("<script>window.alert('aaaaaa')</script>")

解决方案 »

  1.   

    已经没有msgbox了,好像不能在服务器端这样控制客户端弹出窗口
      

  2.   

    应该不能在ASP.NET中用MsgBox吧?
      

  3.   

    Page.RegisterClientScriptBlock("Alert", "<script  language='JavaScript'> alert('aaaaaa!');</script>")
      

  4.   

    选添加引用,选则.net,选system.windows.form.dll
    然后在代码上面加上 Imports System.Windows.Forms
    最后MessageBox.Show("内容","标题",MessageBoxButtons.OK,MessageBoxIcon.Question,MessageBoxDefaultButton.Button1,MessageBoxOptions.ServiceNotification)
    就可以了.