应该没这个问题!!
你点ButtonB显示Confirm用什么语句?

解决方案 »

  1.   

    ButtonB 是怎么隐藏的
    Visable=false好像不行,Style["dispaly"]="null";试试
      

  2.   

    我用是Visable=false
    楼上的方法我试试看
      

  3.   


       ScriptManager.RegisterClientScriptBlock(this, typeof(string), "", "demo()", true);
      

  4.   

    在updatepanel中不能Response.Write,应该用以下:
    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "confirm('xxx');", true);
      

  5.   

    在page_load里给button的attributes增加一个confirm试试。
    5楼的代码可以在asp.net ajax里往前台添加脚本。
    但是你要是用后台往前台confirm的话,建议还是在page_load里给button增加属性。
      

  6.   

    还有一个问题,在ValidateSummery里设置了showMessageDialog属性,但是放在updatePanel里去不弹出对话框,很奇怪,谁能帮我解决一下。
      

  7.   

    这个有问题吗?
    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "confirm('xxx');", true);
      

  8.   

    正解
    不注册是弹不出来了
    因为ajax封装了
      

  9.   

     protected void Button1_Click(object sender, EventArgs e)
        {
            ScriptManager.RegisterClientScriptBlock(UpdatePanel1, typeof(UpdatePanel), "", "", true);    }
    参考
    http://msdn.microsoft.com/zh-cn/library/bb398929.aspx
    http://topic.csdn.net/u/20070517/10/65fa42d0-1fb6-42b0-b51b-05c2092cbc01.html