Here are the steps
Open SharePoint team site.

Create a new list For example: “Authors”.

Create a custom column named “Name of the author”.
Now add some information into the list.
Open Microsoft Visual Studio.

Create a new SharePoint 2013 Empty Project.
Add a new visual Webpart into it.
ASPX Code:

Create a new list For example: “Authors”.

Create a custom column named “Name of the author”.
Now add some information into the list.
Open Microsoft Visual Studio.

Create a new SharePoint 2013 Empty Project.
Add a new visual Webpart into it.
ASPX Code:
- <asp:DropDownList ID="drpbind" runat="server" AutoPostBack="true">
- </asp:DropDownList>
- Using microsoft.SharePoint;
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!Page.IsPostBack)
- {
- using(SPSite site = new SPSite("http://winserver/sites/customsite/"))
- {
- using(SPWeb web = site.OpenWeb())
- {
- SPList list = web.Lists["Authors"];
- drpbind.DataSource = list.Items;
- drpbind.DataValueField = "Title";
- drpbind.DataTextField = "Title";
- drpbind.DataBind();
- }
- }
- }
- }
Final result:



Ramakrishna BasagallaPosted Nov 12, 2015, 12:44 AM EST
Good one
Rajkiran SwainPosted Nov 6, 2015, 3:05 AM EST
Nice
Priyaranjan K STOP 100Posted Oct 6, 2015, 9:11 AM EDT
Good One ..
Sibeesh VenuTOP 100Posted Oct 6, 2015, 5:44 AM EDT
Nice Share
Harshad PansuriyaPosted Oct 6, 2015, 4:44 AM EDT
Nice one
Vinodh NarayananPosted Oct 6, 2015, 4:34 AM EDT
Thanks a lot anit
Vinodh NarayananPosted Oct 6, 2015, 4:34 AM EDT
Thanks a lot
Anit KumarPosted Oct 6, 2015, 12:37 AM EDT
Good One!!
Ankit BansalPosted Oct 5, 2015, 11:14 PM EDT
nice..
Vinodh NarayananPosted Oct 5, 2015, 9:41 PM EDT
@santhakumar munuswamy Thanks a lot sir.
Sandeep VemulaPosted Oct 5, 2015, 9:01 PM EDT
please dont write this kind of very very simple articles. write articles some thing different and new concepts, users also learn new things
Santhakumar MunuswamyPosted Oct 5, 2015, 7:49 PM EDT
Nice Share
Vinodh NarayananPosted Oct 5, 2015, 6:54 PM EDT
Thanks a lot Nilesh Jadav
Nilesh JadavPosted Oct 5, 2015, 5:27 PM EDT
Great Work sir !