index.aspx
 <div style=" margin-top:130px">
                    <form id="f_ation" action="s.aspx" method="get">
                    <input id="s" maxlength="100" name="wd" value="" type="text" />
                    <input value=" 搜 索 " class="search_button" type="submit" />
                    </form>
                </div>default.aspx<div id="soso" style=" margin-top:0px">
<iframe frameborder="0" runat="server" scrolling="no" src="index.aspx" width="600px" height="50px"></iframe>
</div>问题:当我点击按钮,我想跳转到result.aspx页面,而不是还在default.aspx页面注释:我点击搜索,搜索出来的内容还是在这个iframe里面显示,我只想跳转到result.aspx

解决方案 »

  1.   

     <form id="f_ation" action="s.aspx" method="get">
    s.aspx是啥?target
    。<head runat="server">
        <title>无标题页</title>
        <frameset   cols="165,*,8" frameborder="no" border="0" framespacing="0">   
          <frame   name="left"   target="left"   src="left.aspx" frameborder="no" scrolling="No" noresize="noresize" border="0" framespacing="0"  >  
          <frame   name="main"   src="index.aspx" target="main"> 
           <frame   name="right"   target="right"   src="right.aspx" frameborder="no" scrolling="No" noresize="noresize" border="0" framespacing="0"  >     
          <noframes>   
          
          </noframes>   
      </frameset>   
    </head>
    导航的时候加入target="main"

    <a href="xxxx.aspx" target="main">TEST</a>
      

  2.   


    s.aspx就是result.aspx页面,
    现在的问题是我default.aspx是
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
     <title>美好</title>
         
    </head>
    <body  style="margin-top:0px">
    <div style="text-align:center">  <table style=" width:1024px;"  cellspacing="0" cellpadding="0" align="center"><tr><td>
       <!--天气页面-->
       <div id="tianqi">
        <taw:tw ID="Tw1"  runat="server"/>
        </div>
        <!--搜索页面-->
    <div id="soso" style=" margin-top:0px">
    <table><tr><td align="center" style=" width:400px"></td>
    <td align="center"><iframe id="Iframe1" frameborder="0" runat="server" scrolling="no" src="index.aspx" width="600px" height="50px"></iframe></td></tr></table>
    </div>
       </td></tr></table>
    </div></body>
    </html>当我点击嵌入在里面的按钮,就会跳到s.aspx页面哎就是这个页面哎<body style="text-align: center">
        <div id="d_main">
           
            <div id="search" >
                <div id="search_form">
                    <div style=" margin-top:130px">
                        <form id="f_ation" action="s.aspx" method="get">
                        <input id="s" maxlength="100" name="wd" value="" type="text" baiduSug="1"/>
                        <input value=" 搜 索 " class="search_button" type="submit" />
                        </form>
                    </div>
                </div>
    </body>请问怎么修改??
      

  3.   

    我晕,简单的不能再简单了直接在
      <form id="f_ation" action="s.aspx" method="get" target="_blank"  >
    就行了!
      

  4.   

    本帖最后由 net_lover 于 2011-05-10 16:43:38 编辑