Hi,
i've the problem with radlistview and with tag <%..%> into the code.
When start the page, the message error is: Controls collection can not be changed because the control contains code blocks (<%..%>).
Why?
This my code is:
i've the problem with radlistview and with tag <%..%> into the code.
When start the page, the message error is: Controls collection can not be changed because the control contains code blocks (<%..%>).
Why?
This my code is:
<div align="center" class="Centerpage" id="div_radlistview"> <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" Width="1024px" HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1"> <telerik:RadListView ID="RadListView1" runat="server" DataKeyNames="idutente" ItemPlaceholderID="Contenitore" AllowPaging="True" Skin="Simple"> <LayoutTemplate> <fieldset id="FieldSet1"> <legend>Risultati della ricerca:</legend> <asp:PlaceHolder ID="Contenitore" runat="server"></asp:PlaceHolder> <div style="clear: both"> </div> <div> <div style="float: left; margin-left: 30%;"><telerik:RadButton ID="btnFirst" runat="server" Text="Prima" CommandName="Page" CommandArgument="First"Enabled="<%#Container.CurrentPageIndex > 0 %>" Skin="Sunset"> </telerik:RadButton> <telerik:RadButton ID="btnPrev" runat="server" Text="Precedente" CommandName="Page" CommandArgument="Prev"Enabled="<%#Container.CurrentPageIndex > 0 %>" Skin="Sunset"> </telerik:RadButton> <span style="vertical-align: top; position: relative; top: 4px">Pagina <%#Container.CurrentPageIndex + 1 %> di <%#Container.PageCount %></span> <telerik:RadButton ID="btnNext" runat="server" Text="Successiva" CommandName="Page" CommandArgument="Next"Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" Skin="Sunset"> </telerik:RadButton> <telerik:RadButton ID="btnLast" runat="server" Text="Ultima" CommandName="Page" CommandArgument="Last"Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" Skin="Sunset"> </telerik:RadButton> </div> </div> </fieldset> </LayoutTemplate> <ItemTemplate> <fieldset style="float: left; width: 494px; height: 180px"> <legend>Categoria: <%# CType(Container.DataItem, PropertyUtente).Desccategoria%> </legend> <table cellpadding="0" cellspacing="0" width="95%"> <tr> <td style="width: 80%;"> <table cellpadding="5" cellspacing="0"> <tr> <td style="width: 20%;"> Nome: </td> <td style="width: 80%; text-align:left; color:#D5842B"> <%# CType(Container.DataItem, PropertyUtente).utente%> </td> </tr> <tr> <td style="width: 20%;"> Città : </td> <td style="width: 80%; text-align:left"> <%# CType(Container.DataItem, PropertyUtente).Desccomune%> </td> </tr> <tr> <td style="width: 20%;"> Telefono: </td> <td style="width: 80%; text-align:left"> <%# CType(Container.DataItem, PropertyUtente).Telefono%> </td> </tr> <tr> <td style="width: 20%;"> Cellulare: </td> <td style="width: 80%; text-align:left"> <%# CType(Container.DataItem, PropertyUtente).Cellulare%> </td> </tr> <tr> <td style="width: 20%;"> Email: </td> <td style="width: 80%; text-align:left"> <%# CType(Container.DataItem, PropertyUtente).Email%> </td> </tr> <tr> <td> </td> <td style="width: 100%; text-align:center"> <telerik:RadButton ID="RadButton1" runat="server" Text="Visualizza biglietto" Skin="Sunset" OnClick="RadButton1_Click"> </telerik:RadButton> </td> </tr> </table> </td> <td style="vertical-align: top; text-align: right; width: 100px;"> <asp:Image ID="Image1" runat="server" ImageUrl='<%# CType(Container.DataItem, PropertyUtente).imageprofile%>' Height="125px" Width="110px"/> </td> </tr> </table> </fieldset> </ItemTemplate> </telerik:RadListView> </telerik:RadAjaxPanel> </div>