首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

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

2012-03-25 
C# ajax 弹出子窗体 操作时发生错误C# codestring js window.showModelessDialog(StaffList.aspx,win

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

热点排行