我做了一个搜索的功能
输入搜索内容的TextBox在topFrame中,单击Button后,搜索的结果显示在一个DataList中并显示在mainFrame中
我原本使用Response.Redirect,但这个不行
请问应该怎么操作

解决方案 »

  1.   

    这样的功能最好不要使用服务器控件,使用<form target=framename><input name=key><input type=submit value=search>即可
      

  2.   

    <form target=framename><input name=key><input type=submit value=search>孟子的意思是让你用普通的HTML表单来进行搜索词的提交,提交之后利用target来将结果响应在framename框加中,target=framename(这个地方target等于你的响应框加名称,即你上面说的mainFrame),不过这个表单你要的FORM中你还要加上action="xxx.aspx",这样你在xxx.aspx中进行处理,然后显示结果就可以了。
      

  3.   

    表单提交的话,你所要的页面会在这form target=framename 里面