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

IRM and the Object Model

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

Activate and Deactivate Feature through PowerShell