Are you a .NET Developer or Contractor interested in working with Sitecore or Dynamics CRM?

Apply for our Mentorship Program. If accepted, we will mentor you on Sitecore and provide you with project to help you build your skills and make some money at the same time. If you are interested send your resume with details on why you want to work with Sitecore or Dynamics CRM to: Chris Williams - chris.williams@techguilds.com or Dennis Augustine - dennis.augustine@techguilds.com We look forward to working with you to achieve your goals.

Thursday, January 7, 2010

WebPart Parameter Binding to a static value

It took me a while to find this out myself so I thought I would post it here. Sometimes you want to use a webpart and bind the parameters to a static value rather than to the querystring.

I had to use this for the sites in category web part since I had to place two on the same page with different filtervalues for the same field. The way to do this is to find the filtervalue parameter binding entry and add an extra property called "DefaultValue" set this to the proper value and voila.


I hope this saves you some time when you are trying to perform the same task.

If you have any tips, tricks, resources you would like to share with the group please post them as comments or email them to Susan Fischer at susan@clinchportal.com and we will post them in an article.

1 comment:

apatg2 said...

You can also achieve the same end result by creating two separate Data Views on the page and selecting the List as the Data Source, then simply use the default filter/parameter options in SP Designer.