Pregunta

I have used Search Box and Search Result web part on my Home.aspx page.

enter image description here

I have added query text in search result web part, it's working fine and shows results.

But I want to hide the default result.

I want to show result only when user enter text in Search Box web part.

How can this be done?

I had tried this Article, but it will redirect to osssearchresults.aspx page.

¿Fue útil?

Solución

Adding \\{searchboxquery?} to your Search Results Web Parts content source should work. If you are redirected to osssearchresults.aspx it sounds like you have changed the settings on the Search Box Web Part, make sure the setting; Send queries to other Web Parts on this page is checked, and your Search Result Web Part is marked as retriever.

Licenciado bajo: CC-BY-SA con atribución
scroll top