日期:2014-05-17  浏览次数:20486 次

ASP.NET在IE9中的document.getElementById如何用。
在IE6,7,8中用
ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), "cy1", "var parDocument=window.dialogArguments.document.getElementById;", true);

ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), "cy2", "if(parDocument('MainContent_TextCustomerID')!=null){parDocument('MainContent_TextCustomerID').value = '" + CustomerID + "';};", true);

这个能把弹窗中的CustomerID传到父窗口中的MainContent_TextCustomerID控件上。在IE9中这个就报错传不了值了。
请问该如何在IE9中正确传值。请直接修改上面的代码实现,不要网上的资料。

------解决方案--------------------
用jq1.51吧,解决ie9的兼容性问题。
------解决方案--------------------
juery 1.4把
------解决方案--------------------
用jq兼容性都解决了 多好用
------解决方案--------------------
IE9了。。。。。我还在IE6纠结中。。。

悲剧

用jQuery 1.51 兼容IE9
------解决方案--------------------
探讨
IE9了。。。。。我还在IE6纠结中。。。

悲剧

用jQuery 1.51 兼容IE9

------解决方案--------------------
jquery吧
$(#ID)