.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to handle alot of filters on a search page?

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :ASP.Net


I am building a Ad site(advert) much as a ebay site with a search bar and alot of filters. The shown filters will be updated every time the category dropdown is changed. My thought is to send everything to the client on the first load, even data for dropdowns that will not be visible immediately, this means that no AJAX will be needed to fetch extra filter data.

I Supose that this will resolve in alot of javascript and its here my question is. How should I handle this? If I fill an C# object with all the filtertypes and data and sends it over to the client, how can I use this data in javascript to hide/show controls? And is this the way to go?


View Complete Post

More Related Resource Links

Multiple forms on the same page MVC2: how to handle (including validation from model)



It should be simple; although I'm having a hard time to figure out the best way to do it. I've MVC2 pages with multiple forms on the same page having different functionalities.

What's the best way to handle this; including the MVC2 way of validation from the model?


Advanced Search page no found



Currently when a user attempts to conduct an advance search they recieve a page not found message. When I tried to conduct a search myself I was able to enter in my search term, but the search results came up as page not found. On closer inpection I noticed that it is droping part of the URL.


http://sitesp.ca/sites/PETL-EPFT/searchcenter/Pages/Advanced.aspx becomes http://sitesp.ca/sites/PETL/searchcenter/Pages/Advanced.aspx

Has anyone seen this before? Any help would be greatly appreaciated.


Customizing Search Results page in MOSS



The Search Results page in MOSS seems to list the results as links by default. My customer asked me if I could customize the search results so that they show in a data view web part. Is this possible?



QueryEx (Search) results and Custom Page Index


Hi All,

I done a web part which allow the user to query the search.asmx. It return the result fine against which I apply some xslt. However I need a mean to create a Page index. I only return the result based on a range defined in the query.

I need somehow to obtain the number of result the search is returning in total against what I only want to display on the screen.

The only way I sort of figure to do that is by first make a search just to obtain the number of result it will return in total and then make a search defining a range.

Has someone done something similar?


Long execution times for Search pages even after 4th or 5th user has accessed the same page.

Hi Guys We have a Sharepoint 2010 farm with two NLB web fronts ends, a Index server and a two box SQL cluster. The same problem also occurs on a dev box which has Sharepoint 2010 and SQl server running on the same single box. When a user access the search or advanced search page we get long execution times of between 15 and 30 seconds.  The strange thing is that the user will have a slow response the first time, then they are fine for a period of an hour or two and then they hit the slow response again.  Below i have copied info from the developer dashboard.  Does anyone have a suggestion of where to start tackiling this issue. Thanks 1st Run.  (Note this site was accessed by 3 other users first) BeginRequestHandler (0.05 ms) PostAuthenticateRequestHandler (0.06 ms) PostResolveRequestCacheHandler (18.48 ms) GetWebPartPageContent (16.87 ms) GetFileAndMetaInfo (15.57 ms) GetWebPartPageContent (35.25 ms) GetFileAndMetaInfo (34.99 ms) GetWebPartPageContent#1 (89.27 ms) GetFileAndMetaInfo (89.06 ms) Add WebParts (3975.17 ms) Search Box (3974.54 ms) SearchBoxEx.OnLoad (15426.56 ms) SearchBoxEx.HandleContextualScoping (0.01 ms) UserPreference.GetUserPreference (15418.52 ms) UserPreference.GetFromCache (0.04 ms) SearchServiceApplicationProxy.GetUse

Search functionality on Web page

Hi all,          I have one web page which contains lot of text (i.e FAQ page with lot of questions and answers). I have put the text in <div></div> tag. I want to add one "Search" button with a text box, so that when user enters some text in text box and hit Search button , if the word is present in the page text, page focus should be go to that text.          Can any body please tell how should I do that.Thanks 

Search results page showing random characters instead of item's description

I have an email-enabled document library that a few Japanese people email PDF files into (all external to the company). When I search for any PDF file sent from particular email addresses, the search results page displays random characters instead of the item's description. Here is an example: From Screen shots These characters don't appear for all email senders, just some of them. Our MOSS site is in English and we don't have any language packs installed. The PDF file contents are also in English. Can anyone point me towards a solution for this?

adding quicklinks/tree navigation to main search page (search 2010 express)

Hi Just installed Search Server 2010 Express (full version). On the previous version you could add the top link bar to the search page to easily allow you to browse to other sections i.e contacts. With 2010 I cannot seem to add any kind of navigation away from this main page (default.aspx). Using Designer it will not allow me to edit the top bar, quick launch, tree view and top link bar have been enabled with links however they do not show up on the main search page. can someone help ?

Internal server error exception on search results page when no language is set in browser

We have some users who receive an internal server error exception when they enter a search query on our SPS 2010 site. The SharePoint log shows the following: Internal server error exception: System.ArgumentNullException: Value cannot be null.  Parameter name: The property RequestedLanguage cant not set to NULL     at Microsoft.Office.Server.Search.Query.Location.set_RequestedLanguage(CultureInfo value)     at Microsoft.Office.Server.Search.WebControls.CoreResultsDatasourceView.CreateLocationList()     at Microsoft.Office.Server.Search.WebControls.CoreResultsDatasourceView.SetPropertiesOnQdra()     at Microsoft.Office.Server.Search.WebControls.SearchResultsBaseWebPart.EnsureWebpartReady() System.ArgumentNullException: Value cannot be null.  Parameter name: The property RequestedLanguage cant not set to NULL     at Microsoft.Office.Server.Search.Query.Location.set_RequestedLanguage(CultureInfo value)     at Microsoft.Office.Server.Search.WebControls.CoreResultsDatasourceView.CreateLocationList()     at Microsoft.Office.Server.Search.WebControls.CoreResultsDatasourceView.SetPropertiesOnQdra()     at Microsoft.Office.Server.Search.WebControls.SearchResultsBaseWebPart.EnsureWebpartReady() After some more diggin

Search results page

Hi all, I have a custom search web part that builds a query and redirects the query to the results page. As I want to make this search web part generic, I need to find out about which results page to use programmatically (as this can be customized by the user). Is this possible?   Steph Kaiser

change search results page According to custom setting page

I want to create user settings page will be able to choose which will  search results display page x or page y Settings will be saved somewhere. When the user searches on sharepoint search page will display to the user  the page that he select in the search page settings page x or  page y   my questions : 1. Is it necessary to treat the user profile - If so how? 2. how results can be directed to the search results page after a user choose Specific page? 3. where save the settings from custom settings page  ?

I need to pass a variable from a url to an .aspx search/results page


When I was using FrontPage, a .asp page would receive a varialbe from the url when ?field=value was added to the end of the url.  I am now using Expression Web and have found that this doesn't work with .aspx pages.  Can anyone tell me what code needs to be added to the page to accomplish this with .aspx?  I create the .aspx page with VB as the coding selection.

I am not sure what forum this should be in.



Eleanor V

Viewing original blog posting from search page

I have an installation of WSS 3.0 with a blog.  When users search in the blog, results are returned as expected on the search page with one line containing the search phrase.  However when they click on a result they are taken to a Comments page for the posting and can't see the text of the original post which is generally the reason for the search.  The link on the search hit (ex: http://server1:8000/thelog/Lists/Posts/ViewPost.aspx?ID=232) does the same thing.  How can they access the original text of a blog posting from a search or how can the original text be included on the Comments page?  Thanks!

Search Master Page in SharePoint 2010

Hi guys,

When I create a site collection using the Enterprise Search Center template and then go in the Site Settings to change the Master Page I choose to inherit the master page from parent (subsite) or to use v4.master and confirm the default page layout is completely messed up, the search box disappears and it becomes unusable. I included screenshots of this issue below. please help me i am new to sharepoint Has anyone seen this before?

Before the Master Page update:

After the Master Page update:

Extend the OOB Search Box to move to SearchResults.aspx page


Is there any chance to redirect the OOB search box web part to redirect to SearchResults.aspx page if a custom scope is chosen?

My requirement is to implement, Search for "All Sites", People, Current Site, Network Share, Custom Search which uses a web service. The requirement is to have all the above scopes in the dropdown menu. We are able to have all scopes instead of Custom search which need to be redirected to a page in the dropdown. Is it possible to have an entry in the dropdown to redirect to a search page? Can we use the export of OOB Search box to add an entry in scope dropdown?

Kindly help.

How can I add custom Search Paging webpart in the Search results page in MOSS 2007


I have created a Basic webpart page and added Content editor webpart to extend the functionality of Advanced Search webpart. This is working fine. Also added OOB Search Paging webpart int his page. But when the number of items returned by the Search Core results webpart exceeds the Page size (10) then when I click on the next link in the Paging webpart then all results are lost and retrieved from All Sites scope. Is there any way to hook into the Search paging webpart.?

Please note that in the Content Editor webpart I have used custom search scope.

I need help with regard to this.

Thanks in advance!.

Advanced Search doesn't page results 1, 2, 3, 4, 5 Next >


The Advanced Search does return results for my searches, it is located at http://mosslab01/SearchCenter/Pages/Advanced.aspx, when I click search I am taken to the results page: http://mosslab01/_layouts/osssearchresults.aspx

it says Results 1-10 of about 443,904. Your search took 1.05 seconds.  

However, I don't see any parameters in the URL regarding my search keywords, and the paging just appends '?start1=11', '?start1=21', '?start1=31', '?start1=41', when I click 2, 3, 4, 5, respectively, hence the newly formed URL looks like this http://mosslab01/_layouts/osssearchresults.aspx?start1=11 and the page displayed is blank in the search results area.

Previously the results page was set to http://mosslab01/SearchCenter/Pages/results.aspx but whenever a search using "This Site: Site01" was performed no result was returned




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend