Home Search Member List Faq Register Login  
UltimateSearch
custom dataset usage

Thread Starter: williamj   Started: 11-10-2017 2:16 PM   Replies: 2
 Karamasoft Support Forums » General Discussions » UltimateSearch » custom dataset usage
 Printable Version    « Previous Thread   Next Thread »
  10 Nov 2017, 2:16 PM
williamj is not online. Last active: 11/13/2017 1:41:00 PM williamj

Top 10 Posts
Joined on 02-01-2008
Posts 47
custom dataset usage
Hello,

I added a custom search feature that does not use the indexed data.

How do I incorporate the DataSet into the search results?

Here is my code:

protected void GrammarPatternSearchButton_Click(object sender, EventArgs e)
{
string strGrammarPattern = GrammarPatternTextBox.Text.Trim();

int iPatternID = dbRoutines.GetGrammarPatternID(strGrammarPattern);

string category = GetSelectedCategories();

string[] categories = category.Split(new char[] { ',' });

DataSet ds = grammarPatternCreate.CreateDataSet(iPatternID, categories);

UltimateSearchOutput1.DataSource = ds.Tables[0].DefaultView; //*this line
}

The web page never returns from the post back and no data is shown.

Any suggestions?

williamj

  
  10 Nov 2017, 3:24 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: custom dataset usage
Please refer to the AfterSearch or UltimateSearchOutput1_ItemDataBound event handler as shown in the samples at https://www.karamasoft.com/Samples.aspx?component=UltimateSearch&sample=Events and https://www.karamasoft.com/samples.aspx?component=UltimateSearch&sample=SearchDocuments in order to customize the output right before you display it.
  
  13 Nov 2017, 1:35 PM
williamj is not online. Last active: 11/13/2017 1:41:00 PM williamj

Top 10 Posts
Joined on 02-01-2008
Posts 47
Re: custom dataset usage

Thanks for your response.

I was able to use an OnAfterSearch event handler to display the results.

williamj



  
 Page 1 of 1 (3 items)
Karamasoft Support Forums » General Discussions » UltimateSearch » custom dataset usage

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2018 Karamasoft LLC. All rights reserved.