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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
scroll top