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