I'm trying to dynamically generate the WebUrl for a DataFormWebPart so that it uses the parent URL instead of a hardcoded value.
<WebPartPages:DataFormParameter Name="WebURL" ParameterKey="WebURL" PropertyName="ParameterValues" DefaultValue="/sites/test/"/>
I can't use / as the WebUrl as the parent site is located at /site/test/, but this value could change depending on where the subsite is deployed.
The question is, can this DefaultValue be dynamically generated? I tried DefaultValue="../" but that doesn't seem to work.