Gravatar for jshamilton@lamar.com

Question by jshamilton, Oct 22, 2014 11:18 AM

Overriding setup searchbuilder event not binding

I'm trying to override the search parameters/behavior of the searchbox control by overriding the SetupSearchBuilder event. The code is not binding to the event code I wrote to override it.

C# code:

 SetupSearchBuilder += MySearchControl_SetupSearchBuilder;

The ASCX control:

<%--@ Control Language="c#" AutoEventWireup="false" Inherits="Coveo.CES.Web.Search.Controls.SearchControl" --%>
<%@ Control Language="c#" AutoEventWireup="false" Inherits="LamarSitecore.Public.Core.Coveo.Controls.Core.LamarSearchControl" %>
<%@ Register TagPrefix="ces" Namespace="Coveo.CES.Web.Search.Controls" Assembly="Coveo.CES.Web.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=44110d16825221f2" %>
Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Oct 22, 2014 11:29 AM

When, in the page life cycle, do you add your event listener on the SetupSearchBuilder event? The event is probably triggered before you add your event listener to it.

0 Reply
Ask a question