PassMark Logo
Home » Forum

Using ASP for Search Template file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nyctalinth
    Junior Member
    • Aug 2008
    • 2

    #1

    Using ASP for Search Template file

    ***Resolved (http://www.wrensoft.com/zoom/support/faq_ssi.html)***

    I have an asp page which is the search home on our site and it uses some <!--#INCLUDE FILE=".."--> entries to load some headers and a navigation pane. I have inserted the following code to display the search controls on this page:

    <form method="GET" action="search.asp">
    <input type="text" name="zoom_query" size="30">
    <input type="submit" value="Search">
    </form>

    When the search is executed, the search results take the entire window and I lose my headers and navigation pane. I know the results are using the search_template.html to render the result page. I was hoping I could just add the <!--#INCLUDE FILE=".."--> entries to the search_template.html file, but this doesn't work because it is valid only for .asp files. I tried changing the file to .asp and specifying the asp file as the template in the settings.asp file, but it still renders like HTML and ignores the includes.

    Is there a way to use .asp files as search templates? If not, is the only solution to put a frame on my search home and change the search control code to something like:

    <form method="GET" action="search.asp" target="target_frame">
    <input type="text" name="zoom_query" size="30">
    <input type="submit" value="Search">
    </form>
    Last edited by Nyctalinth; Aug-21-2008, 07:31 PM. Reason: resolved
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    Yes as you found there is a FAQ on this topic.
    There is no need to use frames.

    Comment

    Working...