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 执行阶段错误: 必须要有物件” 请教高手中。

解决方案 »

  1.   

    ScriptManager.RegisterStartupScript(this.UpdatePanel11, this.GetType(), "UpdatePanel1", js, true);
    ==
    试试
    ScriptManager.RegisterStartupScript(this.GetType(), this.GetType(), "UpdatePanel1", js, true);
      

  2.   

    找不到方法啊,最后终于妥协了,用window.open()方法了。。难道没有遇到过吗?
      

  3.   

    ScriptManager.RegisterStartupScript(this.UpdatePanel11, this.GetType(), "click", js, true);
      

  4.   

    不行啊。。你的方法不就是我写了。。
    问题主要出现在这个“window.showModelessDialog”地方。。
    如果换用“window.open”就没有我描述的问题了。。