In Windows.Forms, use
MessageBox.Show("hello world");In ASP.Net, use
<script language="javascript">
alert("hello world!");//嘿嘿,你指望是什么?
</script>
MessageBox.Show("hello world");In ASP.Net, use
<script language="javascript">
alert("hello world!");//嘿嘿,你指望是什么?
</script>
Response.Write(@"<script language='javascript'>alert('"+"hello world!"+"');</script>");
Response.Write("<script language='javascript'>alert('"+"hello world!"+@"');</script>");
在asp.net应用中不允许在服务器端代码中使用MessageBox,如果你想显示消息给最终用户,只能用客户端代码,如(msgbox message,title:vbs)。