日期:2014-05-19  浏览次数:20427 次

请问在一个框架集中,如何刷新某一个指定的页面?
如何找到指定页面的框架名称???

------解决方案--------------------
我做的一个项目里就有类似的情况,所谓的刷新,就是重新加载一下,给你我做的代码,你看看能用上吗

框架页:html代码
<frameset id= "frameset1 " border= "0 " frameSpacing= "0 " rows= "* " frameBorder= "1 " cols= "175,* ">
<frame id= "leftFrame " name= "leftFrame " src= "frmLeftMenu.aspx ">
<frame id=rightFrame name=rightFrame
src= " <%=Link_Main%> ">
</frameset>


框架页.cs代码:
public string Link_File;
public string Link_Main;
private void Page_Load(object sender, System.EventArgs e)
{
string SelectNo=Request.QueryString.Get( "SelectNo ");
switch(SelectNo)
{
// case "0 ":
// Link_Main= "frmHello.aspx ";
// break;
case "1 ":
Link_File= "frmLeftUserManagement.aspx ";
Link_Main= "frmUserManagement.aspx ";
break;
case "2 ":
Link_File= "frmLeftCalculates.aspx ";
Link_Main= "frmCalculates.aspx ";
break;
}
}


刷新页面的时候:

//跳转,刷新页面
Response.Write( " <script language=javascript> ");
Response.Write( "window.parent.location.href= 'frmMain.aspx ");
Response.Write( "?SelectNo=2 ' ");
Response.Write( " </script> ");