ASPX templates
Version 5.x > ASPX templates > CMSSearchDialog View modes: 
User avatar
Member
Member
yasser - 10/28/2010 9:03:20 AM
   
CMSSearchDialog
Hi,

I've included the cmssearchdialog onto my aspx page, but I want the results to be shown on a different page. What property do I use to tell the search to redirect to the results page?
I know this can be done from the Portal Engine as I've already done this, but I'm trying to do this via visual studio.

Thanks

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 10/29/2010 7:04:36 AM
   
RE:CMSSearchDialog
Hi,

I’m sorry, but I’m not aware of any "SQL Search dialog" web part property which could allow you to redirect the requests from current page to some other page where SQL Search result web part would be.

In other words, this control/web part is designed in such a way that after the search button is pressed, user is redirected to the same page. This behavior cannot be changed without source code version of Kentico CMS since this control is built in dll files.

However, you can use searchbox control/web part on your ASPX page template to redirect to some other page where your search result web part/control will be located.

Example:

<%@ Register Src="~/CMSWebParts/Search/cmssearchbox.ascx" TagName="cmssearchbox"
TagPrefix="uc2" %>

<uc2:cmssearchbox ID="Cmssearchbox1" SearchResultsPageUrl="~/somepage.aspx" runat="server" />


If you are not satisfied with this option, you can still develop custom control or web part.

I hope this will help you.

Best regards,
Miroslav Remias.

User avatar
Member
Member
yasser - 11/2/2010 6:03:07 AM
   
RE:CMSSearchDialog
Thanks for the reply, I've sorted this out now.
Although I have to say that I didnt mention SQL Search dialog.