Hi, I dont think this is what I needed. I m going to share some of my code to make things clear:
in the smart search results page:
<%@ Page Title="" Language="C#" MasterPageFile="~/CMSTemplates/Elections/Views/Templates-Ar/Site.master" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="CMSTemplates_Elections_Views_News" %>
<%@ Register Src="~/CMSTemplates/Elections/Views/Templates-Ar/SearchControls/SearchDialogWithResults.ascx" TagPrefix="uc2" TagName="SearchDialogWithResults" %>
<%@ Register Src="~/CMSTemplates/Elections/Views/Templates-Ar/UserControls/SearchFilter.ascx" TagPrefix="uc1" TagName="SearchFilter" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
<section class="padding-top-bottom">
<div class="container">
<div class="row">
<section class="col-sm-8">
<!-- Search Panel -->
<uc2:SearchDialogWithResults runat="server" ID="SearchDialogWithResults" TransformationName="cms.root.smartsearchresultswithimages" Indexes="Elections" />
<article class="padding-bottom">
</article>
</section>
<uc1:SearchFilter runat="server" id="SearchFilter" />
</div>
</div>
</section>
</asp:Content>
for each Register I implemented a controller, for example, the code for search dialog:
<%@ Control Language="C#" AutoEventWireup="true" Inherits="CMSWebParts_SmartSearch_SearchDialogWithResults" CodeFile="~/CMSWebParts/SmartSearch/SearchDialogWithResults.ascx.cs" %>
<%@ Register Src="~/CMSTemplates/Elections/Views/Templates-Ar/SearchControls/SearchDialog.ascx" TagPrefix="uc1" TagName="SearchDialog" %>
<%@ Register Src="~/CMSTemplates/Elections/Views/Templates-Ar/SearchControls/SearchResults.ascx" TagPrefix="uc1" TagName="SearchResults" %>
<div class="padding-bottom">
<h2 class="text-red">بحث</h2>
<div class="SearchDialog">
<uc1:SearchDialog runat="server" ID="srchDialog" />
</div>
</div>
<div class="SearchResults">
<uc1:SearchResults runat="server" ID="srchResults" />
</div>
Now I want to continue this way and add the filter for the search results.