English 中文(简体)
Sharepoint 2007 Data view Webpart custom parameters
原标题:

I m sort of new to the custom parameters that can be setup on a DataView Webpart.

There are 6 options: - None - Control - Cookie - Form - QueryString - Server Variable

I think that None, Cookie and QueryString speak for themselves and are pretty straightforward. The issue comes from the other 3. There isn t much documentation as to what they are and how they can be used (or I haven t found it) I know that there s plenty of tutorials that explain that a dropdown can be a matched to a dataSource and then used as a parameter source control .

If you don t use a datasource it seems that parameter source control isn t the right item to pick as the parameter specified will never be populated with the dropdown values.

If anyone could explain the different parameter sources? Also how would one use checkboxes or a simple input text box to filter a dataview webpart?

Thanks for any tips/help.

ps: here s the link to the dropdown parameter use: http://sharepointxperiments.wordpress.com/2009/08/03/multiple-filters-on-a-data-view-webpart/

最佳回答

The other 3 are:

Control: Binds the DataForm(or View)WebPArt to a control somewhere on the page using the following syntax:

<ParameterBinding Name="Meal" Location="Control(clStartDate)" DefaultValue="01-01-2010"/>

or

<ParameterBinding Name="StartDate" Location="Control(clStartDate, SelectedValue)" DefaultValue="01-01-2010"/>

Where clStartDate is an ASP.NET Calender Control.

You see that Control() takes either 1 or 2 parameters, the second is the name of the property on the control you want to use (i.e. Text or SelectedIndex etc etc.). If you leave it empty (like in option 1) it will use the Control s DefaultProperty (as defined by the control itself).

As for the Form option, I ve never used it before but I m guessing it can be used to bind to a value received through a Form POST action.

More info can be found here

问题回答

暂无回答




相关问题
SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

UI automated testing within SharePoint

I m looking for automated Functional Testing tools that can manipulate SharePoint sites, libraries, and documents thought the web interface. It needs to be extensible enough to handle any custom ...

Enable authorization on sitemap provider

I want to enable Authorization on the Site map provider. We have enabled anonymous access to the site and we want the Site map provider to be visible only to authorized users. I tried ...

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

Sharepoint 2007 Data view Webpart custom parameters

I m sort of new to the custom parameters that can be setup on a DataView Webpart. There are 6 options: - None - Control - Cookie - Form - QueryString - Server Variable I think that None, Cookie and ...

热门标签