locked
Search.aspx custom control AdvancedSearch problem RRS feed

  • Question

  • User-1980716583 posted

    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?

    Thanks

     

    Thursday, November 20, 2008 9:24 PM

Answers

  • User730446648 posted

    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?

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 20, 2008 10:19 PM

All replies

  • User730446648 posted

    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?

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 20, 2008 10:19 PM
  • User-1980716583 posted

     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)
    ...
    proper checks
    ... 

     

    and if thats true, we set in the viewState that we had a advancedSearch, and pass the paramters in to Search.aspx

     

    Thanks.

    Thursday, November 20, 2008 11:32 PM