vs2005在CS中执行一条JAVASCRIPT操作,使父亲页面刷新,怎么做? protected void Button1_Click(object sender, EventArgs e) { //这里执行一系列操作,执行完毕后,要刷新父亲页,怎么做? } 当前A页面中,有iframe的B页,在B页中点按钮后,我想让A页面刷新。 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 javascriptwindow.opener.location.reload(); *****************************************************************************欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 最新版本:20070212http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html protected void Button1_Click(object sender, EventArgs e) { String csname1 = "refreshA"; Type cstype = this.GetType(); ClientScriptManager cs = Page.ClientScript; if (!cs.IsStartupScriptRegistered(cstype, csname1)) { String cstext1 = "window.opener.location.reload()" cs.RegisterStartupScript(cstype, csname1, cstext1, true); } } ddluser是什么来的,希望大侠们详细点。 关于本地电脑和服务器域名下面的路径问题 这样的分页伪静态怎么处理呢 由于刷新导致的问题! 打开的网页电脑重起后关闭,但不触发onbeforeunload() Firefox访问CSDN论坛所遇到的页面缓存问题 DataGrid分页问题,在线等,10分钟结了 纪录datagrid模板列中CheckBox的状态(急!急!急!) 两个服务器上的数据库怎样保持同步 自学该怎样学? ASP.NET连接SQL数据库的问题!!! 我是新手,请问论坛结贴这块怎么实现?
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 最新版本:20070212http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html
{
String csname1 = "refreshA";
Type cstype = this.GetType();
ClientScriptManager cs = Page.ClientScript;
if (!cs.IsStartupScriptRegistered(cstype, csname1))
{
String cstext1 = "window.opener.location.reload()"
cs.RegisterStartupScript(cstype, csname1, cstext1, true);
} }