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
Post a Comment