Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > passing params from searchBox to searchResults View modes: 
User avatar
Member
Member
eagleag - 6/28/2010 8:10:45 AM
   
passing params from searchBox to searchResults
Hi,
Ive create a custom searchBox webpart with added dropdowns.
I would like to send the info selected in search dropDowns to the searchResult webpart
and have it load into (as the path):

srchResults.Path = Path;

How can I achieve this?
do I need to use a formControl? macros? any other way?


User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 6/28/2010 8:51:04 AM
   
RE:passing params from searchBox to searchResults
Hi,

You can send the custom data to searchResult webpart in the URL (using query string parameters).

Example:

Searchresultpage.aspx?custompath=/somepath

Then you can get the value from this URL using query string macro in your “Path” property of your searchResult webpart.

Example:

Path: {%custompath%}

I hope this will help you.

Best regards,
Miroslav Remias.