A页面(使用了Ajxs)   protected void Btn_Next_Click(object sender, EventArgs e)//弹出B页面
        {
                           Session["PC"] = this;//当前页面
                string js = "showModalDialog(‘B', window,'resizable:yes;scroll:no;status:no;help:no;dialogWidth:330px;dialogHeight:260px')";               
                ScriptManager.RegisterClientScriptBlock(this.udp_ButtonList, this.GetType(), "key", js, true);
            }
        }
 public void NextMethod()//在B页面中调用
        {
               string js="......"     ;
            //在这怎么把js输出到前台 ????????????????????????????     
        }B页面(使用了Ajxs)
 protected void btn_Save_Click(object sender, EventArgs e)
        {
            ScriptManager.RegisterStartupScript(this.udp_Next,this.GetType(),"key","self.close()",true);
            ((Hz_OAUI.WebUserControl.ProcessControl)Session["PC"]).NextMethod();//调用A页面函数
             Session.Remove("PC");          
        }        问题:怎样在A页面的NextMethod()输出脚本?