管延文

管延文程序空间 QQ:27651302

导航

2011年9月28日

父子不同窗口间刷新传值

摘要: 1、刷新当前页 写在 html 中<ahref="javascript:window.location.reload();">刷新</a>2、跳转 ,写在 html 中functiongotourl(url){//window.top.PageFrame.location.href=url;//框架时用window.location.href=url;}使用方法:gotourl('SearchMessage.aspx');3、刷新父窗口,同时关闭当前这个打开的子窗口,写在 C# 代码里。Response.Write("< 阅读全文

posted @ 2011-09-28 10:46 tiger8000 阅读(248) 评论(0) 推荐(0) 编辑

用 showModalDialog 方法回传数据到父页中去

摘要: parent.aspx 做为父页,html 端代码如下:<scriptlanguage="javascript">functionselect_value(){varval=document.getElementById("StrCode").value;vartext=document.getElementById("StrName").value;varreturnvalue=showModalDialog("StreetTreeViewModule.aspx?selectval="+val+&qu 阅读全文

posted @ 2011-09-28 09:49 tiger8000 阅读(254) 评论(0) 推荐(0) 编辑