0
我有以下的代碼:ASP:asp的中繼器內:內容
<asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderPageDescription">
<table class="custom-table">
<asp:Repeater ID="oRepeater" runat="server" >
<ItemTemplate>
<tr onclick="javascript:location.href='/nuovoTema/viewIdea.aspx?ID='">
<td><%# ((SPListItem)Container.DataItem)["ID"] %></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</asp:Content>
編譯器抱怨In content pages, content is not allowed outside <script> or <asp:Content> regions
。
如何將asp:Content和asp:Repeater結合使用?我有一個列表來顯示。
謝謝
這是正確的,你不能在內容廣場持有者之外放置任何東西。但是據此,你們之外沒有任何東西,那麼問題是什麼? – 2009-10-13 16:37:24
你能從這個頁面發佈更多的代碼嗎?除非您實際上擁有控件之外的內容,否則不應該看到該錯誤。 –
Peter
2009-10-13 16:38:53
肯定需要更多頁面才能找到錯誤。 – Chuck 2009-10-13 16:55:58