解决方案 »

  1.   

    顶下,你用的 scriptmanager?
      

  2.   

    tring scriptstring = "window.parent.frames['rightFrame'].search('" + dx + "','" + dy + "');";
     ScriptManager.RegisterStartupScript(this, this.GetType(), "", scriptstring, true);      
      

  3.   


    string scriptstring = "<script language=javascript>";
                        scriptstring += "self.frames['rightFrame'].search('" + dx + "','" + dy + "');";
                        scriptstring += "</script>";
    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "aaa", scriptstring, false);
      

  4.   


    string scriptstring = "<script language=javascript>";
                        scriptstring += "self.frames['rightFrame'].search('" + dx + "','" + dy + "');";
                        scriptstring += "</script>";
    ScriptManager.RegisterStartupScript(Updatepanel1, this.GetType(), "aaa", scriptstring, false);
      

  5.   

    ScriptManager.RegisterStartupScript 第一个参数 是 updatepanel 控件 ID
      

  6.   

    已测试过的的方法
           //  Response.Write(scriptstring);
                       ScriptManager.RegisterStartupScript(this.Page, typeof(System.Web.UI.Page), "aaa", scriptstring, false);
                       // ScriptManager.RegisterStartupScript(ImageButton1, typeof(UpdatePanel), "aaa", scriptstring, false);
                     //   scriptstring="alert('你好!')";
                        ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "message",scriptstring , true); 
                        //ClientScriptManager csm = Page.ClientScript;
                        //csm.RegisterClientScriptBlock(this.GetType(), "aaa", scriptstring, false); 
      

  7.   

    所有都加了个这个self.frames['rightFrame'],结果都出问题了