Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I would like to create a column/field in a newform.aspx with items from another list in SharePoint. Basically while creating a new item in the list they should see a dropdownlist with items in columns from another list in SharePoint.

NOTE: The new item is been created in an External List, so lookup field is not an option.

List 1:

Contractor (Column)
ABC
CDE
FJG

New Form ASP.NET Code:

C#
<SharePoint:FieldLabel Grid.Column="0" Grid.Row="4" ControlMode="New" FieldName="Contractor" />
<Comment FieldName="Contractor" FieldInternalName="Contractor" FieldType="Text" />
<SharePoint:FormField Grid.Column="1" Grid.Row="4" ControlMode="New" FieldName="Contractor" IncludeDescription="True"/>


Thanks.
Posted
Updated 14-Mar-14 5:06am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900