| asp控件UpdatePanel能够比较简单地实现局部刷新,可是,使用了这种局部刷新,相应的Response.write执行就不成功了,要用ScriptManager.RegisterClientScriptBlock3 O9 Q: e. j* H0 ]/ G" A ' L% G6 j7 t2 S" ~6 ]& l9 x
 具体例子如下:( |0 R% G3 c' n  T
 ScriptManager.RegisterClientScriptBlock(this.Page, typeof(Page), DateTime.Now.ToString().Replace(":", " "), "alert('超时,请重新登录!');parent.window.location = '../../Login.aspx';", true);0 R, W5 ^3 T$ k) V; ~
 
 3 `( f, N5 b9 e# pScriptManager.RegisterClientScriptBlock(this.Page, typeof(Page), DateTime.Now.ToString().Replace(":", " "), "alert('实验修改成功!')", true);* i8 p; q+ l+ }3 T$ f+ i5 T7 Z
 等等
 # l% p5 X! O  Q4 l; Z* G
 ' f0 V' K& I; O( C0 F  X如果要使用,只要替换第三部分的js代码就好了。。。
 |