I want to put an asp dropdownlist withing an asp .net repeater.. having problems

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
good Friday to all you magical people with all the answers.
I want to put an asp dropdownlist within an asp repeater and my vb code behind is not recognizing the dd list. If I move it outside the repeater it works fine. Any help is greatly appreciated.
code below: <asp:Repeater runat="server" ID="rptPFEDocumentCategories" OnItemDataBound="DisplayDocuments

<ItemTemplate>
<li style="list-style-type: none <a id="<%#Container.DataItem("Line")%> <%#Container.DataItem("Line")%>
<asp:Repeater runat="server" ID="rptPFEDocuments" OnItemDataBound="DisplayStatesByForm
<HeaderTemplate>

</HeaderTemplate>
<ItemTemplate>
<li style="list-style-type: circle
<b>Number:</b>&nbsp;<%#Container.DataItem("FormNumber")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a target="_blank /DesktopModules/PolicyFormsDocumentsModule/PFEImagePage.aspx?fn=<%#Server.UrlEncode(Container.DataItem("FormNumber"))%>&pfetype=pd Word Format &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a target="_blank /DesktopModules/PolicyFormsDocumentsModule/PFEImagePage.aspx?fn=<%#Server.UrlEncode(Container.DataItem("FormNumber"))%>&pfetype=pp PDF Format

<li style="list-style-type: circle
<b>Title:</b>&nbsp;<%#Container.DataItem("Title")%>


<asp:DropDownList ID="ddlMechanisms" runat="server" ></asp:DropDownList>

</ItemTemplate>
<SeparatorTemplate><hr /></SeparatorTemplate>
<FooterTemplate>


</FooterTemplate>
</asp:Repeater>
</ItemTemplate>
<SeparatorTemplate><p /></SeparatorTemplate>
</asp:Repeater>


shash

View the full article
 
Back
Top