写客户端脚本
<script>
<!--hide
alert("Message");
//end-->
</script>

解决方案 »

  1.   

    在ASP.net开发环境中,不能引入System.Windows.Forms命名空间,所以不能调用MessageBox.show()函数。若要向客户端显示提示信息可以使用Label控件(MSDN如是说)。另一种办法是使用脚本函数,如JavaScript。
      

  2.   

    用JAVASCRIPT呀,MessageBox.Show方法不能在ASP.NET中使用的.public void messagebox(string str)
    {
    Response.Write ("<script language=Javascript>");
    Response.Write ("alert(\"" + str + "\");</script>");
    }在要的地方调用这个方法就可以了.
      

  3.   

    Response.Write ("<script>window.alert('信息')</script>");
      

  4.   

    Response.Write ("<script>window.alert('信息')</script>");