Gravatar for

Question by torreygarland, Dec 9, 2016 7:16 PM

SearchHub name set from Code-Behind

Are there any issues with setting the name attribute/property using .NET code-behind for an ASP.NET Coveo SearchHub server control. if the Name attribute hard-coded in html/design mode, there is no problem, but setting if from a Page_Load event is not working.

1 Reply
Gravatar for

Answer by ronald, Dec 12, 2016 9:36 AM

Setting the Name property of the SearchHub control programmatically must be done during the page PreInit stage, otherwise the change has no effect. During the Init or Load stage, it's too late.

Ask a question