0
在ext.net中,我动态创建了一个窗口,当用户单击某个特定按钮时,需要关闭该窗口。ext.NET关闭动态窗口
这里是我的code.parent窗口中定义的:
Window win= new Window();
win.ID = "window1";
win.Title = "";
win.Height = 400;
win.Width = 750;
win.AutoScroll = true;
win.Resizable = false;
win.Padding = 5;
win.Modal = true;
win.AutoLoad.Url = "child.aspx";
win.AutoLoad.Mode = LoadMode.IFrame;
this.form1.Controls.Add(win);
win.Render(this.Form);
win.Show();
在child.aspx:
Parent.window1.close(); // error
谢谢
我做到了,但它有错误:名称'父'不存在于当前的情况下 – mshirdel 2012-04-26 09:48:57