使用AJax技术的 aspx.CS 文件中,有一个 Timer 控件,怎么在Timer 的 Timer1_Tick 事件中 弹出一个 showModalDialog 模态窗口 ? 100 分奉上

使用AJax技术的 aspx.CS 文件中,有一个 Timer 控件,如何在Timer 的 Timer1_Tick 事件中 弹出一个 showModalDialog 模态窗口 ?! 100 分奉上


我使用的是 vs.net2005 ,装的是徽软的 Ajax1.0 用到了,ScriptManager 和 UpdatePanel,

我放了一个 Timer 控件,20 秒刷新一次

protected void Timer1_Tick(object sender, EventArgs e)
{
  if(realinfo == true)
  {
  //要求在此写弹出一个 showModalDialog 模态窗口
  }
}

如果用:Response.Write 输出以下 javascript 的话

<script language="javascript">
function select_value()
{
var returnvalue = window.showModalDialog("Mule.aspx",window,"dialogWidth:400px;DialogHeight=300px;center: yes;help:no;resizable:no;status:no");

}
</script>

我试过,不通过,请各位高手帮帮忙!



------解决方案--------------------
不要使用Response.Write,用ClientScript.RegisterClientScriptBlock替换 
这样看看 
语法如下ClientScript.RegisterClientScriptBlock(this.GetType(), "", "<script>alert('自己看!')</script>");