父页面
OnClose="Window1_Close",代码事件也写了
protected void Window1_Close(object sender, EventArgs e){}
子窗口(弹出窗口)
private void LoadData()
{
btnCloseWin.OnClientClick = ExtAspNet.ActiveWindow.GetHidePostBackReference();
}
<ext:Button ID="btnCloseWin" Icon="SystemClose" runat="server" Text="关闭"></ext:Button>
在子窗口点击关闭按钮时,子窗口关闭,但在IE状态栏显示脚本错误,如下:
在vs编辑器跟踪显示脚本:Ext.Ajax.request({form:theForm.id,url:document.location.href,isUpload:X.form_upload_file,success:function(m){var k=m.responseText;var l=k.substr(0,5);
红色是VS编辑器停留高亮显示地方
Microsoft JScript 运行时错误: 'undefined' 为空或不是对象
|