I have a custom list which I have a SPFieldLookup in. I've created an application page with my own custom creation form for a new item of that list so I'm trying to put an LookupField but nothing appears on the page.
Here's the code:
<asp:Table runat="server" class="formTable">
<asp:TableRow runat="server">
<asp:TableCell>Issuer<span class="compulsory"> *</span></asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="IssuerName" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="IssuerNameLookupRow" runat="server">
<asp:TableCell>Issuer<span class="compulsory"> *</span></asp:TableCell>
<asp:TableCell>
<SharePoint:LookupField ID="IssuerNameLookup" runat="server" ListId="85aj8229-9658-4gyj-b76c-6786y5ca52ru" Visible="true" EnableViewState="true" IsValid="true" ControlMode="New" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
And you can see here that the LookupField isn't displayed: http://ift.tt/1Gjy3Xq
I'm sure of my ListID! I would like to replace the asp:TextBox by the SharePoint:LookupField.

0 commentaires:
Enregistrer un commentaire