June 13, 2011

// // Leave a Comment

SharePoint ListFieldIterator Control


This control renders each field in a list item with an appropriate control. A single line text field will be rendered as a text box while a lookup field will be rendered as combo box. This control resides in the Microsoft.SharePoint.WebControlsnamespace of the Microsoft.SharePoint.dll.
You  can use this control in a custom application page or in a custom Edit, New and Display form.


In its simplest way you can declare the control as follows:
<spuc:ListFieldIterator ID="TestListFieldIterator" runat="server"
 ControlMode="Edit" ListId="{e2886b6e-4d63-4063-a02c-eac7fb3aef79}" />
 
 

0 comments:

Post a Comment