Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, October 19, 2012 8:10 AM
Hi,
Anyone can share a sample code on how to add a drop down list to a SharePoint 2010 site with look up data on document library column.
Thanks.
All replies (7)
Wednesday, October 24, 2012 8:40 AM âś…Answered | 1 vote
Hi,
I understand you that you want to add a dropdown list control in a page and set it's datasource to a column of document library.
If I am right, try the steps below:
- open the page using SharePoint designer;
- Select Insert>Data source> select your document library
- Insert >asp.net control> select dropdown list
- Select Choose Datasource from the dropdown list control and select your data source and select the column you want to display.
Xue-mei Chang
TechNet Community Support
Friday, October 19, 2012 9:48 AM
Hi,
where do you want to add the dropdown? What is the objective?
Thanks.
Nuno Costa
Friday, October 19, 2012 10:45 AM
Hi,
where do you want to add the dropdown? What is the objective?
Thanks.
Nuno Costa
On the SharePoint Site. The datasource should be coming from the one column of the the document library.
Thursday, October 25, 2012 12:50 PM
Hi,
I understand you that you want to add a dropdown list control in a page and set it's datasource to a column of document library.
If I am right, try the steps below:
- open the page using SharePoint designer;
- Select Insert>Data source> select your document library
- Insert >asp.net control> select dropdown list
- Select Choose Datasource from the dropdown list control and select your data source and select the column you want to display.
Xue-mei Chang
TechNet Community Support
Hi thanks for your post. i've already done this one but upon saving the page in SPD the drop down will disappear.
Monday, October 29, 2012 5:14 AM
Hi,
I did the same thing, the dropdown list displayed in the page, please check if you have set this control hidden.
Xue-mei Chang
TechNet Community Support
Monday, October 29, 2012 7:22 AM
Hi,
I did the same thing, the dropdown list displayed in the page, please check if you have set this control hidden.
Xue-mei Chang
TechNet Community Support
Hi, I have not set the control to hidden. But upon saving the page in SPD the dropdownlist code changes and the control disappeared. I added the control on the site pages. Is this works on the site pages? because I tried adding a dropdownlist control on the master pages and all are working fine. I hope for your response.
Thanks.
Thursday, November 1, 2012 5:23 AM
Hi,
I added it in a site page, it worked well.
Xue-mei Chang
TechNet Community Support