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

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

2 refinement panel webparts behaving the same despite different settings

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :SharePoint
Finally! And the syntax should be Operatingx0020System (without the "_"), Now i have strange different case - i placed 2 refinement panel webparts at the page - one with my customizations and the second is the default one, and somehow the second behave exactly like the customized! although no customizations there...

View Complete Post

More Related Resource Links

SharePoint 2010 Refinement Panel - Show more link issue

Hi,  I have deployed a Refinement Panel on my search result page. And I have modified the Filter Category Definition to get some Managed Metadata columns. Below are the xml changes: <?xml version="1.0" encoding="utf-8" ?> <FilterCategories>   <Category    Title="Category"    Description="Managed metadata of the documents"    Type="Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator"    MetadataThreshold="3"    NumberOfFiltersToDisplay="3"    MaxNumberOfFilters="20"    ShowMoreLink="True"    MappedProperty="ows_MetadataFacetInfo"    MoreLinkText="show more"    LessLinkText="show fewer" />   <Category    Title="Modified Date"    Description="When the item was last updated"    Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"    MetadataThreshold="5"    NumberOfFiltersToDisplay="6"    MaxNumberOfFilters="0"    SortBy="Custom"    ShowMoreLink="

Refinement Panel Customization with Managed Property

Hi, I've customized the refinement panel with a Managed Property I've created myself. The refinement panel takes into account this managed property and disply it well. However, if this Managed Property is multi-valued, then each entry in the refinement panel does not split the multi valued column into different values and display a single value like : Enter Choice #1;Enter Choice #2;Enter Choice #3; and of course in that case the refinement does not work. I did the same thing in MOSS 2007 with the codeplex faceted search web part release 2.5 and it was working fine. Upgrading to release 3.0 however seems to produce the same issue as in SharePoint 2010. Any help would be greatly appreciated. Hervé

document information panel settings

Hi All could anybody please tell me where you can accss in site content type document information panel settings, i am using sharepont foundation and cannot seem to find it anywhere.   Thanks John johnJ

Category definition in refinement panel


I am using a refinement panel in SharePoint 2010


 I want to display two columns from type "managed metadata"

I add the following xml code to the "Filter Category Definition " property at the beginning of the <FilterCategories>

Property Settings not behaving as I expect ?


This illustration hopefully shows how I'm trying to use an if statement on a Property Setting value 'persistLanguage'.   My intended design is to show a Language Selection dialog box the first time the application is launched after the application is installed.  Once the user has selected a language, that 'persistLanguage' Property setting will now have either English 'en-US', Spanish 'es', or Simplified Chinese 'zh-CN'.    Unfortunately, even when I launch the app initially after an uninstall of the application and re-installation, it remembers the Language used the last time the User closed the application in the Form_Closing eventHow can I use the Property Settings to have an initial blank value = "" which will then become set with the language selected in a ComboBox? which can be used the next time the application is launched and will set the localization resources automatically to that language. Thank you!

Customizing the refinement panel - ContentSource/SiteName



I'm trying to add a category based on the "ContentSource" property but this does not seem to work. To test this I copied the following line:

<Category  Title="Site"  Description="Which site this document is from"  Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"  MetadataThreshold

Sharepoint 2010 FAST Template Web Parts Documentation (refinement panel)

I am trying to create a prototype for a sharepoint 2010 site for my team and I am working with the FAST Template (out of the box). I am implementing the "Search" Web parts that Include: Refinement Panel, Related Queries, Search Action Links but all of them ask for a refinement schema. I am looking for documentation on this on the MSDN site and I cannot find nothing that really is helping me out. For example, this is the Refinement Panel Caption property for the "Refinement Panel" web part:

<?xml version="1.0" encoding="utf-8"?>
  <Category    Title="Result Type"    Description="The file extension of the item"    Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"    MetadataThreshold="5"    NumberOfFiltersToDisplay="4"    MaxNumberOfFilters="0"    SortBy="Frequency"    SortDirection="Descending"    SortByForMoreFilters="Name"    SortDirectionForMoreFilters="Ascending"     ShowMoreLink="True"    MappedProperty="FileExtension"    MoreLinkText="show more"    LessLinkText="show fewer">
    <CustomFilters MappingType="ValueMapping" DataType="String" ValueReference="Absol

Sharepoint Designer 2010 Corrupting Refinement Panel


I wonder if anyone has seen this...

Using Sharepoint Designer 2010, try to customize the refinement panel in a search results page to show a managed property.

a. with an existing or new refinement panel added to the results page, right click and modify the webpart's "Filter Category Definition" [In my case I simply changed the title of the first category]

b. uncheck the 'use default configuration'

c. Save the page and call it up in a browser.

The refinement panel shows a garbage string of 1000 characters.

The above works OK if the page is edited via a browser, but not using Sharepoint Designer 2010.

Anyone seen this?

Thank you!

Mike Bennett

Write Custom WebParts for SharePoint 2007

The popularity of SharePoint Portal Server 2003 led Microsoft to tightly integrate the next SharePoint version, Microsoft Office SharePoint Server (MOSS) 2007, with its ASP.NET 2.0 WebPart framework. This tight integration enables the ASP.NET and SharePoint developer to do a number of things that previously weren't possible

Convert English to Arabic number without changing any regional settings in .net

Well, most applications that I worked with was multilingual that supports English UI and Arabic UI.

And one of the major issue that we have faced is displaying Arabic numbers without the need of changing the regional settings of the PC.

So the code below will help you to display Arabic number without changing any regional settings.

Help me with webParts


I added WebPartManager to my default.aspx and i get   teh following Message :

Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

SQLExpress database file auto-creation error:

The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:

  1. If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory

validateRequest appears to be kicking in in MVC RC1 despite settings

After upgrading a project to the RC a System.Web.HttpRequestValidationException is thrown when posting a value containing HTML from a TextArea. I have checked that validateRequest=false in Views/web.config, and have set this in the application's root web.config. I have also created a fresh MVC project, created a simple view & controller and posted a simple html paragraph element with the same result. Call stack provided. [HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (html="

hello world

").] System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) +8718538 System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) +111 System.Web.HttpRequest.get_Form() +129 System.Web.HttpRequestWrapper.get_Form() +11 System.Web.Mvc.ValueProviderDictionary.PopulateDictionary() +113 System.Web.Mvc.ValueProviderDictionary..ctor(ControllerContext controllerContext) +74 System.Web.Mvc.ControllerBase.get_ValueProvider() +31 System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor) +53 System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +109 System.W

Web Deployment with IIS settings of remote server


Im trying to deploy a web application project (VS 2010) via team build (TFS 2010), i got to use IIS settings of development server for deployment. So from the project properties I configured the web projects to use Custom web server, (enabled radio button), once i do this the Option in the tab Package/Publish Web "Include all IIS Settings as configured in IIS manager" gets disabled and as a result the deployed web project does not have this IIS settings.

What am I missing here, Im not using the option "Use local IIS Web Server" because the build happens in a build server and would try to take local IIS settings for packaging which is not present.

If this is not possible, suggest me any workaround. Any help on this is greatly appreciated.

User Preferences: Manage User Settings in Your .NET App with a Custom Preferences API


There are plenty of options out there for managing user preferences including custom configuration files, the Windows registry, and the isolated storage. But each option has its pros and cons -- and a bad choice can make life difficult. In this article, the author evaluates various options and identifies the characteristics of a good preferences API. Based on those characteristics, he introduces an API that is specifically designed for preferences management, one that offers the best of all the options.

Ray Djajadinata

MSDN Magazine July 2004

Protect It: Safeguard Database Connection Strings and Other Sensitive Settings in Your Code


Protecting application secrets, such as database connection strings and passwords, requires careful consideration of a number of pertinent factors such as how sensitive the data is, who could gain access to it, how to balance security, performance, and maintainability, and so forth. This article explains the fundamentals of data protection and compares a variety of techniques that can be used to protect application settings. The author discusses what to avoid, such as hiding keys in source code and the use of Local Security Authority. In addition, he presents some effective solutions such as the Data Protection API.

Alek Davis

MSDN Magazine November 2003

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