Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

How to create common sharepoint search method for 3 different webparts ?

$
0
0

Hi.,

I am facing an issue in our Project with SharePoint search. I have designed a Dashboard page for the user where there are three web parts : Latest, Suggested and Preferences. Now I need to fetch the documents to Preference web part based on the SharePoint search and I have to make sure that those documents are not coming to the other two web parts.
 
For this the approach that I taking currently is: I am doing the search in all the three web parts. Whenever the document is meeting the search criteria I am putting the document id in a hash table. For Latest and Suggested I restricting those document id s which are there in hash table and for Preference web part we are doing the opposite.
 
Now the problem is i am using 3 ascx.cs page for these three web parts and that is why I need to perform the same SharePoint search 3 times which is affecting the system performance. So I need to have a common hash table (or something like that) which can be accessed from all the three web parts to get the document ids. Please guide me regarding this issue. I will be thankful for any help provided.


Thanks., Prakash


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>