大家都遇到过的网站框架问题? 各位高手:我的C#后台是使用Dreamweaver中的框架,想信使用过的都会遇到在框架中链接本身框架页面时,会重新加载,left,top,base,right。请问怎样解决。还有就是,我的top页面有个退出,怎样在点击后关闭整个框架页面,打开一个新页面了??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Response.Write ("<script>top.location.href='login.aspx';</script>");Response.Write("<script language='javascript' defer>top.leftFrame.location.href='../menu.aspx'</script>"); parent.document.getElementById('content').src="";parent.location.href="";document.frames["content"].location.href = ""; Response.Write (" <script>window.open("XX.aspx","_self"); </script>"); 上面的回答也比较好,我一般用这个 我的Top页面有有一个预览,需要打开一个新窗口, //建材网首页预览 protected void LinkButton2_Click(object sender, EventArgs e) { Response.Write ("<script>window.open('../comfirmMsg.aspx','_self');</script>"); }这样不能打开一个新窗口,请指点 window.open很容易被当成广告拦截了我就想不明白楼主为什么要关闭当前的页面 在打开新页面?直接在当前的页面打开新页面不就行了吗?<a href="http://www.baidu.com" target="_top">打开百度</a> 我的需求是top页面有一个LinkButton,用于预览页面,像51那样,现在就是要点这个按纽传一个id值,打开一张新页面,原页面不关闭,我使用的是框架,不知怎样实现??????? 另外还想向大家请教下:Repeater怎样实现光棒效果,谢谢,我会加分的 在Repeater实现光棒效果如<table><asp:Repeater ID="RP1" runat="server"><tr onmouseover="this.style.backgroundColor='#c4d8ed';" onmouseout="this.style.backgroundColor='#fefeff';"><td>dd</td></tr></asp:Repeater></table> 想要跳转页面 不关闭原页面<input id="Button1" type="button" value="审核原因" onclick="javascript:window.showModalDialog('AuditingManage/QueryAuditingError.aspx?measurename=<%# Eval("measurename")%>',window,'status:yes;Maximize=yes;resizable:yes;dialogHeight:310px;dialogWidth:500px;unadorne:yes');" class="button"/>关闭窗口 Response.Write("<script>parent.location.href='../login.aspx'</script>"); EntityFramework一对多的数据插入 能不能根据onclick(),获得该控件的坐标? 怎么用ajax 客户端事件 更新GridView? 承接.net项目,各方面都可。 DropDownList问题````新手求助 如何让文字轮回显示 如何将一个textbox里面的得到内容写入到sql server2000数据库中? 我用DataGrid的模板添加了一列CheckBox,想多先几行后点一个删除按钮后一起删除,请指请??? 诡异的js对联广告 关于一个javascript的Confirm的问题 很无奈啊。。。。。。。。。。。 如何从数据库里取得最后10条数据
Response.Write("<script language='javascript' defer>top.leftFrame.location.href='../menu.aspx'</script>");
parent.location.href="";
document.frames["content"].location.href = "";
上面的回答也比较好,我一般用这个
protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Write ("<script>window.open('../comfirmMsg.aspx','_self');</script>");
}这样不能打开一个新窗口,请指点
我就想不明白楼主为什么要关闭当前的页面 在打开新页面?
直接在当前的页面打开新页面不就行了吗?
<a href="http://www.baidu.com" target="_top">打开百度</a>
现在就是要点这个按纽传一个id值,打开一张新页面,原页面不关闭,
我使用的是框架,不知怎样实现???????
<table>
<asp:Repeater ID="RP1" runat="server">
<tr onmouseover="this.style.backgroundColor='#c4d8ed';" onmouseout="this.style.backgroundColor='#fefeff';">
<td>dd</td>
</tr>
</asp:Repeater>
</table>