Last post Nov 20, 2008 11:32 PM by Ricardo_Rodrigues
Nov 20, 2008 09:24 PM|Ricardo_Rodrigues|LINK
Hi all, on the webform Search.aspx we have the custom control AdvancedSearch, wich can be found under /Controls/AdvancedSearch.ascx (for people using C#, dunno if fo VB its the same).
So what's this control used for?, there's a comment saying:
<!-- uc1:AdvancedSearch (invisible) is used to handle parameters for AdSearchDataSource -->
AdSearchDataSource is used for the GridView showing the results of a search on Search.aspx, but i don't understand what the custom control is doing to it.
Can anyone please advise?
Nov 20, 2008 10:19 PM|darkknight187|LINK
If you perform a search from advanced.aspx, or something like that, ( I don't use it)
It will display the search results on search.aspx.
In this case Advanced Search is in effect.
It lets you search by images only, max price, min price.
Things like that.
Does that make sense?
If I didn't answer your question, what exactly do you want to know?
Nov 20, 2008 11:32 PM|Ricardo_Rodrigues|LINK
I think i got it,
so in search.aspx.cs (code behind file) we test if we ad a cross-post from advancedSearch, with the following:
if (Page.PreviousPage != null)
and if thats true, we set in the viewState that we had a advancedSearch, and pass the paramters in to Search.aspx