除了Me.Response.Write("<script language=javascript>alert('');</script>")
这种方式。

解决方案 »

  1.   

    总之,必须输出 <script>alert(xxxxx)</script>,只是输出方式有多种
    Response.Write 是一种
    还有就是 RegisterStartupScript 等,即注册脚本
    在 ClientScriptManager 类里
      

  2.   


    楼主兄弟,用这个吧 绝对行Response.Write("<script>alert('跳出对话框')</script>");
      

  3.   

    Response.Write("<script>alert('')</script>");
    就这个吧.其他的我就不知道了。
      

  4.   

    AJAX regist the Javascript for the callback method, and when finished the postback, call the registed method in the client side if the registed event ocurred. about the window, you can both use the window.open() or Alert() to do it.
      

  5.   


    [DllImport("user.dll", EntryPoint="MessageBox")] 
    public static extern int MsgBox(int hWnd, String text, String caption, uint type); 
    引用user.dll就哟MsgBox可用了。
      

  6.   

    <asp:Button ID="Button1" Runat="server" 
          OnClick="Button1_Click" 
            OnClientClick="return confirm('OK?')" 
            Text="Test Client Click" />
      

  7.   

    ASPX所做的仅仅是在服务器端生成HTML代码只要是在客户端的行为,比如跳出对话框之类,那就一定要向客户端输出javascript或其他客户端脚本要么在页面初次加载时输出,要么在回发后输出