如题。
希望是越简单越好!!!
在后台写的代码!!
这个是老问题,所以50分就行了!!
而且步难!

解决方案 »

  1.   


     this.RegisterStartupScript("", "<script language='javascript'>alert('没有符合条件的纪录.')</script>");
      

  2.   

    this.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('test');</script>");
      

  3.   


    this.ClientScript.RegisterStartupScript(typeof(string), "js", "alert('hello');", true);
      

  4.   


    Page.RegisterStartupScript("", "<script language='javascript'>alert('出错了!')</script>");
      

  5.   

    重新写个页面0--->作为弹出的页面 window.open("Default3.aspx", "wldwsel",  "status=yes,left="+( screen.width - screen.width * .5) /2.5+",top="+( screen.height -screen.height * .5)/2.5+",width=" + screen.width * .7 + ",height=" + screen.height * .6);  写在javascript里
      

  6.   

    谢谢各位,但是我写的代码就是这//成功后,显示成功信息
            if (bFlag == true)
            {
                this.ClientScript.RegisterStartupScript(this.GetType(), "", " <script>alert('操作成功!'); </script>");
                //this.Page.RegisterClientScriptBlock("message", "<script>alert('操作成功!');</script>");
            }
            else
            {
                this.Page.RegisterClientScriptBlock("message", "<script>alert('操作失败!');</script>");
            }
    但是弹出信息框,后面的页面会变白!!!
    而这个事件是触发了数据库操作的!!
    不知道,如何结绝????????