Sales Questions
Topic: Re: "Target=" issue?
Karamasoft Support Forums

Page 1 of 1 (2 items)


Posted by mikeArrowTruck on 10-24-2014 11:54 AM

In your forums I’ve been unsuccessful in finding a solution to an issue I’m currently efforting. I’d like to open up the search results in a separate window. Is this possible? My attempts have been:

 

<cc1:UltimateSearchInput ID="UltimateSearchInput1" runat="server" SpellIncludeDirectory="/UltimateSpellInclude/"

                                SearchOutputPage="../Screens1/SearchResults.aspx" Target="blank"> (OR Target=”_blank”)

 

AND

 

<cc1:UltimateSearchOutput ID="UltimateSearchOutput1" runat="server" Target="blank"> (OR Target=”_blank”)

                            </cc1:UltimateSearchOutput>

 

 

But with no luck. How can I affectively implement this and where?


Posted by Karamasoft on 10-24-2014 12:35 PM
First you need to customize your search input control to build the url on the server-side as shown in the Customize Input Controls sample at https://www.karamasoft.com/Samples.aspx?component=UltimateSearch&sample=CustomInput.

Then replace the last line:

Page.Response.Redirect(queryStr, true);

with:

Page.Response.Write("<script>window.open(queryStr, '_blank');</script>");