读书人

C# ajax 弹出子窗体 操作时发生异常

发布时间: 2012-03-25 20:55:17 作者: rapoo

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);

读书人网 >C#

热点推荐