日期:2014-05-18  浏览次数:20797 次

C# ajax 弹出子窗体 操作时发生错误
C# code

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.UpdatePanel11, this.GetType(), "UpdatePanel1", js, true);
==
试试
ScriptManager.RegisterStartupScript(this.GetType(), this.GetType(), "UpdatePanel1", js, true);

------解决方案--------------------
关注
 LZ有解决方案了贴出来啊
------解决方案--------------------
关注 学习
------解决方案--------------------
学习!
------解决方案--------------------
ScriptManager.RegisterStartupScript(this.UpdatePanel11, this.GetType(), "click", js, true);