Everything might have already been set, and you just need to change the button postback url, but if not this will work.
On the default page remove the object datasource and gridview, and set the button postback url to "Search.aspx or whatever page you want to show results on."
On the code behind (search.asx.vb) you will see this.
' carry over just search term as regular search in category
AdvancedSearch.ImportProperties(advParameters)
Add this:
SearchTermTextBox.Text = advParameters.SearchTerm
Make sure that the search box from the default page where the search is starting has the same Id ie .. SearchTermTextBox
If I remember right it this is already underneath that in the Else section:
Dim CommonSearchTextBox As TextBox = CType(Util.FindControlRecursively("CommonSearchTextBox", Page.PreviousPage.Controls), TextBox)
If Not (CommonSearchTextBox Is Nothing) Then
' query came from Master Page Search Box
SearchTermTextBox.Text = Server.HtmlEncode(CommonSearchTextBox.Text)
End If
And it should carry over the search term, and I think everything was already set to carry over the category aswell.
Just make sure both pages use the same Id on the carry over textbox, and dropdownlist.
Be sure to visit
www.detelli.com to find and list your
Houses for rentAnd please remember to click ?Mark as Answer? on the post that helps you.
This can be beneficial to other community members reading the thread.