I need to embed my search.asp script into a template. The template uses server-side includes so I can't use search_template.html.
I tried using the tips suggested here: http://www.wrensoft.com/zoom/support/faq_ssi.html
First, I tried including "search.asp" within my main page "search.aspx" using <!-- #include file="search.asp"--> . This gave me the following error:
----
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed.
Source Error:
Line 44: end if
Line 45:
Line 46: Function MapPath(path)
Line 47: Dim IsHSP
Line 48: on error resume next
----
Why????
Then I tried not embedding search.asp at all and instead manually inserted the html into search.asp. This works, but the problem is that whenever I rerun the Zoom Search Tool to re-index the files, the search.asp page gets overwritten and the template gets erased! I tried finding a way so that the Zoom Search Tool would ONLY index without rewriting search.asp, but there doesn't seem to be any option.
What should I do now?
I tried using the tips suggested here: http://www.wrensoft.com/zoom/support/faq_ssi.html
First, I tried including "search.asp" within my main page "search.aspx" using <!-- #include file="search.asp"--> . This gave me the following error:
----
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed.
Source Error:
Line 44: end if
Line 45:
Line 46: Function MapPath(path)
Line 47: Dim IsHSP
Line 48: on error resume next
----
Why????
Then I tried not embedding search.asp at all and instead manually inserted the html into search.asp. This works, but the problem is that whenever I rerun the Zoom Search Tool to re-index the files, the search.asp page gets overwritten and the template gets erased! I tried finding a way so that the Zoom Search Tool would ONLY index without rewriting search.asp, but there doesn't seem to be any option.
What should I do now?
Comment