protected void rpNoResults_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            var searchLinkManager = new SearchLinkManager();
            var url = searchLinkManager.GetRedirectLink(new SearchObject()
            {
                Text = e.CommandArgument.ToString()
            });

            Response.Redirect(url);
        }
        protected void SearchButton_Click(object sender, EventArgs e)
        {
            SearchLinkManager searchLinkManager = new SearchLinkManager();
            SearchObject      searchObject      = new SearchObject()
            {
                Text = SearchBox.Text,
            };

            Response.Redirect(searchLinkManager.GetRedirectLink(searchObject), false);
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Search_Click(object sender, EventArgs e)
        {
            // Clear existing holiday search session
            Session.Remove(Keys.HolidaySearchSession);

            SearchObject searchObject = new SearchObject()
            {
                Text        = txtSearchText.Text,
                HolidayType = !String.IsNullOrEmpty(ddlHolidayType.SelectedValue) ? new Guid(ddlHolidayType.SelectedValue) : Guid.Empty,
                Terrain     = !String.IsNullOrEmpty(ddlTerrain.SelectedValue) ? new Guid(ddlTerrain.SelectedValue) : Guid.Empty,
                Page        = 1
            };
            var searchLinkManager = new SearchLinkManager();

            Response.Redirect(searchLinkManager.GetRedirectLink(searchObject), false);
        }