ParameterBinding Element (List)

Specifies a stylesheet parameter binding to make a resource available to the XSL that renders the view.

<ParameterBinding  Name = "Text"  Location = "Text" />

Attribute

Description

Name

Optional Text. Specifies a name for the parameter. The XSL stylesheet defines a parameter of the same name -- <xsl:param name="ParameterName"/> -- and the resource becomes available anywhere in the stylesheet through an XPath expression -- <xsl:value-of select="$ParameterName" />.

Location

Optional Text. Specifies the location of the resource. SharePoint Foundation uses a Resource function to define the value of Location in the format Location = "Resource(ResourceFile, ResourceName)", where ResourceFile specifies the base name of a resource file minus the file extension, and ResourceName specifies the name of the resource string.

In addition to specifying a localized resource in a .resx file, the Location attribute can be used to specify values indicated in the following table.

Context

Format

Query strings

<ParameterBinding Name="SelectedID" Location="QueryString(SelectedID)"/>Corresponding code in XSL: <xsl:param name=“SelectedID”/>

Connection/Postback

<ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>

Server variables

(Location=“Form(variableName)”)

Web Part Properties

(Location=“WPProperty(PropertyValue”)

Control IDs

(Location=“Control(ControlID)”)

Minimum: 0

Maximum: Unbounded

Community Additions

ADD
Show:
© 2014 Microsoft