0
我试图在Opera 12.12版中刷新页面内容(其中包含两个gridviews)。看起来我的页面在某个中间点阻止了,因为它仍然是空白的。我的代码完美的作品在所有浏览器,除了歌剧:在Opera中使用Ajax刷新页面
ClientScript.RegisterClientScriptBlock(this.GetType(), "refresh", "<script type='text/javascript'>function refreshList() { try { if (document.all) { document.all('" + lbnRefreshList.ClientID + "').click(); } else { document.getElementById('" + lbnRefreshList.ClientID + "').click(); } } catch(e){} } </script>");
protected void lbnRefreshList_Click(object sender, EventArgs e)
{
// redind data to gridviews
}
我也使用AJAX更新面板和我的GridView的是在面板内部,而lbnRefreshList被设置为AsyncPostback触发。但是,我不知道为什么我的页面不在Opera上刷新,尽管代码执行。相反,系统会提示我提供一个空白页面。
任何意见非常赞赏。谢谢!
能否请你展示和aspx页面代码的其余部分,并清除您尝试后运行脚本更新。 – Aristos