string js = "window.showModelessDialog('StaffList.aspx',window,'status:0;help:1;scroll:0;dialogwidth=480px;dialogHeight=400px;Resizable=yes;status=yes;')";ScriptManager.RegisterStartupScript(this.UpdatePanel11, this.GetType(), "UpdatePanel1", js, true);
上面就是我打开子窗体的代码,然后在子窗体中有个GRIDVIEW控件,我在翻页和选择行的时候,出现错误
“Microsoft JScript 执行阶段错误: 必须要有物件” 请教高手中。
==
试试
ScriptManager.RegisterStartupScript(this.GetType(), this.GetType(), "UpdatePanel1", js, true);
问题主要出现在这个“window.showModelessDialog”地方。。
如果换用“window.open”就没有我描述的问题了。。