Customised search widget added directly to page template, submit button doesn't worked in hea
I have customised the search widget which works fine when widget is dropped into pages, but if the code below is added directly to a page template the submit button doesn't work.
<!-- SEARCH -->
<%@ Register TagPrefix="sitefinity" Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" %>
<fieldset id="main" class="sfsearchBox" runat="server">
<asp:TextBox ID="searchTextBox" runat="server" CssClass="sfsearchTxt" placeholder="Site search" />
<asp:Button ID="searchButton" runat="server" OnClientClick="return false;" Text="<%$Resources:SearchResources, Search %>" CssClass="sfsearchSubmit" />
</fieldset>
<!-- // SEARCH -->
Hello,
Try referencing the whole modified widget on the template instead of just a textbox and a button. From the information below it is hard to tell if you have the full widget functionality on the template or not.
Regards,
Atanas Valchev
Telerik
Thanks Atanas,
I resolved the problem by adding a placeholder to the header in the .master page, then added the widget to the template.
Jacquie