我在前台使用了updatePanel控件,因为我使用了个js的时间控件不用不行我想在后台操作成功后弹出提示框就用了Response.write("<script language=javascript>alert('操作成功')</script>");
由于使用了updatepanel后这个提示框不会弹出来,
 请问各位大侠怎么解决这个问题啊
谢谢

解决方案 »

  1.   

    ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "alert('熊猫发光');", true);   
      

  2.   

    ClientScript.RegisterClientScriptBlock(this.GetType(), "ok", " <script>alert('操作成功'); </script>");
      

  3.   

    试试用下面的方法
    ScriptManager.RegisterClientScriptBlock(控件名, 控件名.GetType(), "", "alert('test')", true);
      

  4.   

    public static class test
        {
            public static void ajaxShowMsg(this System.Web.UI.Page page, string info)
            {
                ScriptManager.RegisterClientScriptBlock(page, page.GetType(),"alert",
                    "alert('" + info + "')", true);
            }
        }你在调用就行了
      

  5.   

    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('操作成功'); ", true);
      

  6.   

    ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "", "", true);