I've put an SharePoint:SPDataSource element on an aspx page, which is going to be linked to an asp:DropDownList, but I can't find a value for the query WebUrl parameter that works. What am I missing? The markup looks like this:
<SharePoint:SPDataSource ID="sdsCompany" runat="server"
DataSourceMode="List"
UseInternalName="true"
SelectCommand="<Query><OrderBy><FieldRef Name='Title'/></OrderBy></Query>">
<SelectParameters>
<asp:Parameter Name="WebUrl" DefaultValue="/News/" />
<asp:Parameter Name="ListName" DefaultValue="Companies" />
</SelectParameters>
</SharePoint:SPDataSource>
<asp:DropDownList ID="ddlCompany" runat="server"
DataSourceId="sdsCompany"
DataTextField="Title"
style="min-width:200px" AutoPostBack="false" />
The list I'm trying to reference is at http://server/sites/News/Lists/StandingData/Companies/, but nothing I've tried so far works. Any suggestions?
/sites/News/. – Alexander Apr 26 '12 at 8:53