Bind the SharePoint List Values to DropDownList using SPDataSource


<SharePoint:SPDataSource runat ="server"  ID="spMaster"  DataSourceMode="List" SelectCommand="<Query><OrderBy><FieldRef Name='SortOrder' Ascending='true' /></OrderBy></Query>" >
                                <SelectParameters>
                                <asp:Parameter Name="WEbUrl" DefaultValue="/SiteName/" />
                                <asp:Parameter Name="ListName" DefaultValue="Your List Name Here" />
                                </SelectParameters>
                                </SharePoint:SPDataSource>


Comments

Popular posts from this blog

This content database has a schema version which is not supported in this farm

Export all documents/Folders permissions to CSV using SharePoint PowerShell

SPUtility.js