Incremental search result

Last post 02-21-2008 5:05 AM by erzki. 6 replies.

Sort Posts:

  • Incremental search result

    02-20-2008, 12:35 PM
    • Member
      72 point Member
    • erzki
    • Member since 09-28-2006, 7:33 AM
    • Posts 24

    If you have many items in a search result it would be good to fill the list with the search result incrementally.

    How do I accomplish this task with Microsoft AJAX? I have tested some solutions with dynamically adding content inside an updatepanel, it does not work well because you have to add all content all the time due to the viewstate is not preserved for dynamically added controls.

    Look at a real example here (look at the bottom of the page that expands all the time): http://www.bytbil.com/

    Choose something in "Välj kategori" and then "Sök".

  • Re: Incremental search result

    02-20-2008, 12:41 PM
    • All-Star
      123,327 point All-Star
    • XIII
    • Member since 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 13,641
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Hi,

    the ASP.NET AJAX Toolkit provides an autocompleteextender and a cascadingdropdownlist. These could probably help you in your effort.

    Grz, Kris. 

  • Re: Incremental search result

    02-20-2008, 2:37 PM

    If you avoid using tables, or controls that render as tables (GridView, DataGrid, etc.), then the page should render as it loads just like you want.

    When you ask a question, remember to click "mark as answered" when you get a reply which answers your question.


    My latest ASP.NET AJAX blog entries.
  • Re: Incremental search result

    02-20-2008, 10:37 PM

    Typing in the textbox calls a web service behind the scenes to query a database, and the query results are what are displayed.

        http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx

        http://www.asp.net/learn/ajax-videos/video-122.aspx

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: Incremental search result

    02-21-2008, 4:52 AM
    • Member
      72 point Member
    • erzki
    • Member since 09-28-2006, 7:33 AM
    • Posts 24

    I think you don't understand what I want.

    I want the search result do be added incremantally row by row. Then the user will get the first search results very quickly on his screen. The others are added incrementally after each other.

    As I can see there is no extender in the Ajax toolkit to accomplish this task.

  • Re: Incremental search result

    02-21-2008, 4:59 AM
    • All-Star
      123,327 point All-Star
    • XIII
    • Member since 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 13,641
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

     Hmm,

     in that case you should make a lot of webservices calls probably to retrieve the data row by row. This can cause a serious hit on your server. Apparently you want the people to first put in the search criteria and let them push a button and then retrieve, row by row, the search result right?

    Grz, Kris.
     

  • Re: Incremental search result

    02-21-2008, 5:05 AM
    • Member
      72 point Member
    • erzki
    • Member since 09-28-2006, 7:33 AM
    • Posts 24

    Yes, that is right.

    But I have no idea of how to implement it.

Page 1 of 1 (7 items)