I have just purchased the pro version. I have an asp.net application with masterpages.
I can add the search textbox and get results in my search.aspx page.
However, I want to have my search.aspx page implement a masterpage also.
So what I did was add a reference to the dll, so the main bin folder held the dll, and deleted the dll in the /search/bin folder. Then I added the following code:
<%@ Page Title="" Language="VB" MasterPageFile="~/app_resources/masterpages/company.master" AutoEventWireup="false" %>
<%@ Register TagPrefix="ZoomASPX" Namespace="ZoomASPX" Assembly="ZoomASPX" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href='<%= resolveUrl("~/app_resources/style/search.css") %>' rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<ZoomASPX:ASPXSearch id="ASPXSearch" runat="server"/>
</asp:Content>
My search_template file looks like the following:
<h1>Search this site</h1>
<p>
Enter one or more keywords to search for using the Zoom Search Engine.<br />
Note that '*' and '?' wildcards are supported.
</p>
<!--ZOOMSEARCH-->
<script type="text/javascript">
if (document.getElementById('zoom_searchbox'))
{ document.getElementById('zoom_searchbox').focus(); }
</script>
It actually works well and produces results.
However, the code when it renders adds an additional form tag in the code, for the additional text box and submit button for re-searching.
Do you know of a solution to this anyone please? ( I could change te code on pre-render but would prefer not to have to.)
Thanks
I can add the search textbox and get results in my search.aspx page.
However, I want to have my search.aspx page implement a masterpage also.
So what I did was add a reference to the dll, so the main bin folder held the dll, and deleted the dll in the /search/bin folder. Then I added the following code:
<%@ Page Title="" Language="VB" MasterPageFile="~/app_resources/masterpages/company.master" AutoEventWireup="false" %>
<%@ Register TagPrefix="ZoomASPX" Namespace="ZoomASPX" Assembly="ZoomASPX" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href='<%= resolveUrl("~/app_resources/style/search.css") %>' rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<ZoomASPX:ASPXSearch id="ASPXSearch" runat="server"/>
</asp:Content>
My search_template file looks like the following:
<h1>Search this site</h1>
<p>
Enter one or more keywords to search for using the Zoom Search Engine.<br />
Note that '*' and '?' wildcards are supported.
</p>
<!--ZOOMSEARCH-->
<script type="text/javascript">
if (document.getElementById('zoom_searchbox'))
{ document.getElementById('zoom_searchbox').focus(); }
</script>
It actually works well and produces results.
However, the code when it renders adds an additional form tag in the code, for the additional text box and submit button for re-searching.
Do you know of a solution to this anyone please? ( I could change te code on pre-render but would prefer not to have to.)
Thanks
Comment