如何在1.aspx的Page_Load()方法里写一段代码让2.aspx页面刷新一下

解决方案 »

  1.   

    你的1.aspx和2.aspx是怎么联系的
      

  2.   

    <meta http-equiv="refresh" url="RefreshPage.aspx" content="60">
      

  3.   

    如果 a与b不存在 任何关系
    如b是a打开的页面
    或a b在一个框架内
    或a含有b(iframe)
    等等
    那么是不可能操作b的
      

  4.   

    1.aspx和2.aspx分别在两个iframe里,当点击1.aspx里的HyperLink时,iframe2里面刷新,现在是想让iframe2里面的页先刷新再让1.aspx也刷新
      

  5.   

    parent.htm
    <html>
    <head>
    <title>parent page</title>
    </head>
    <body>
    <iframe src="leftframe.htm" name="leftframe"></iframe>
    <iframe src="mainframe.htm" name="mainframe"></iframe>
    </body>
    </html>mainframe.htm
    <html>
    <head>
    <title>main frame</title>
    </head>
    <body>
    <input type="button" onclick="parent.leftframe.location.reload();" value="刷新左边的子页" />
    </body>
    </html>
      

  6.   

    不行,这样是先刷1.aspx
    要的效果是先刷2.aspx,再刷1.aspx
      

  7.   

    Click the link to solve your problem.Good luck!