没听的很明白
MessageBox.show("hello");

解决方案 »

  1.   

    javascript:response.write (<script>alert('消息!')</script>
      

  2.   

    MessageBox 是 WinForm 的东西 ,而我要的是 window.alert()
      

  3.   

    我要是不想用
     response.write 呢?这样不又是 脚本写在页面里马?
      

  4.   

    Response.Write("<script>")
                Response.Write("alert('" + sMsg + "')")
                Response.Write("</script>")
      

  5.   

    Response.Write(@"<script language='javascript'>alert('message');</script>");
      

  6.   

    button.Attributes.Add("onclick","window.alert('abc');");button 可以 啊,页面就不行吗?
      

  7.   

    可以在Body标签中增加如下:
    <body onload="alert('Hello')">
    但是这个事件只有IE支持
    实际上这种方式与直接在Body中写Script是一样的效果
      

  8.   

    用response.write可以很方便的实现
      

  9.   

    in Page_Load:
    Page.RegisterStartupScript("alert","<script language=javascript>alert('your message');</script>");
      

  10.   

    page_load:
    response.write (<script>alert('message')</script>
      

  11.   

    http://expert.csdn.net/Expert/TopicView1.asp?id=1442542
      

  12.   

    response.write (<script>alert('message')</script>    当出现ALERT()时,当前页为不可见,为什么?
      

  13.   

    http://expert.csdn.net/Expert/TopicView1.asp?id=1442542
      

  14.   

    如果要弹出一个question,怎么写?
      

  15.   

    就是弹出的对话框上有两个按钮,一个是YES一个NO,有谁会啊
      

  16.   

    <body onload="confirm('OK?')">
      

  17.   

    把alert换成confirm函数,就是弹出的对话框上有两个按钮,一个是YES一个NO
      

  18.   

    错误。应该是 一个OK一个Cancel
      

  19.   

    帮人帮到底
    再问ynduanlian()
    如何得知按下哪个按钮?