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()输出脚本?
{
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()输出脚本?
a.NextMethod();
NextMethod()函数在B页面已经成功调用(函数已经成功执行)就是在函数里面输出脚本时有问题。
脚本数不出来!!!
或返回脚本到A页面