This is a migrated thread and some comments may be shown as answers.

RadStrip - Data is not displaying neither <%= or <%#

1 Answer 66 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ravi Prasad Potturi
Top achievements
Rank 1
Ravi Prasad Potturi asked on 15 Sep 2008, 04:12 PM
Hi,

       I have a section where i can display common information for all tabs and in main page. I was getting  "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). "  When i tried with <%= (Ex:  <%= Resources.DealerFinance.DealerNumber %>).  As suggested in forums, I replace <%= with <%#. Now i am not getting error but values are not displaying on the screen.

Can you please help me to resolve this issue?


Thanks
Ravi



<%

@ Page Language="C#" MasterPageFile="~/DealerFinance.master" AutoEventWireup="true"

CodeFile="DealerDetails.aspx.cs" Inherits="Dealer_DealerDetails" Title="Untitled Page" %>

<%

@ MasterType VirtualPath="~/DealerFinance.master" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%

@ Register TagPrefix="uc1" TagName="ucDealer" Src="Dealer.ascx" %>

<%

@ Register TagPrefix="uc2" TagName="ucVehicles" Src="Vehicles.ascx" %>

<%

@ Register TagPrefix="uc3" TagName="ucNotes" Src="Notes.ascx" %>

<%

@ Register TagPrefix="uc4" TagName="ucActivities" Src="Activities.ascx" %>

<%

@ Register TagPrefix="uc5" TagName="ucContacts" Src="Contacts.ascx" %>

<%

@ Register TagPrefix="uc6" TagName="ucCollaterals" Src="Collaterals.ascx" %>

<%

@ Register TagPrefix="uc7" TagName="ucBalance" Src="Balance.ascx" %>

<%

@ Register TagPrefix="uc8" TagName="ucInvoice" Src="Invoice.ascx" %>

<%

@ Register TagPrefix="uc9" TagName="ucAudit" Src="Audit.ascx" %>

<%

@ Register TagPrefix="uc10" TagName="ucPayments" Src="Payments.ascx" %>

<

asp:Content ID="Content2" ContentPlaceHolderID="DealerFinancePlaceHolder" runat="Server">

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="rtsDealerDetails" />

</UpdatedControls>

</telerik:AjaxSetting>

<telerik:AjaxSetting AjaxControlID="rtsDealerDetails">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="pnlDealerDetails" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<table width="100%">

<tr>

<td align="center" class="moduleborder">

<table align="center">

<tr>

<td align="left">

<table width="50%">

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.DealerNumber %>

</td>

<td align="left" nowrap="nowrap">

<asp:Label ID="lblDealerNumber" runat="server" SkinID="DisplayNormal">1005</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.LegalName%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="lblLegalName" runat="server" SkinID="DisplayNormal">Kawasaki Legal Name </asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.Address%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="lblAddress" runat="server" SkinID="DisplayNormal">900 Irvine Blvd dkgjsjfd sfdjl </asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.Address%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="Label1" runat="server" SkinID="DisplayNormal">Righr Place Holder</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

#Resources.DealerFinance.Address%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="Label2" runat="server" SkinID="DisplayNormal">Right Place Holder</asp:Label>

</td>

</tr>

</table>

</td>

<td align="left">

<table width="50%">

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.DealerName %>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="lblDealerName" runat="server" SkinID="DisplayNormal">Kawasaki Dealer Name</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.KawasakiName %>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="lblKawasakiName" runat="server" SkinID="DisplayNormal">Kawasaki</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.StateCityZip %>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="lblStateCityZip" runat="server" SkinID="DisplayNormal">Irvine, CA 92602</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.Address%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="Label3" runat="server" SkinID="DisplayNormal">Left Place Holder</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.Address%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="Label4" runat="server" SkinID="DisplayNormal">Left Place Holder</asp:Label>

</td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

<tr>

<td align="center">

<telerik:RadTabStrip ID="rtsDealerDetails" runat="server"

Skin="Web20" AutoPostBack="True" SelectedIndex="9" >

<Tabs>

<telerik:RadTab Text="Details" />

<telerik:RadTab Text="Vehicles" />

<telerik:RadTab Text="Notes" >

<Tabs>

<telerik:RadTab Text="KMFC" />

<telerik:RadTab Text="KMC" />

<telerik:RadTab Text="Special" />

<telerik:RadTab Text="Flash" />

</Tabs>

</telerik:RadTab>

<telerik:RadTab Text="Activities" />

<telerik:RadTab Text="Contacts" />

<telerik:RadTab Text="Collaterals" />

<telerik:RadTab Text="Balance" />

<telerik:RadTab Text="Invoice" />

<telerik:RadTab Text="Audit" />

<telerik:RadTab Text="Payments" Selected="True" />

</Tabs>

</telerik:RadTabStrip>

</td>

</tr>

<tr>

<td>

<telerik:RadAjaxPanel ID="pnlDealerDetails" runat="server"></telerik:RadAjaxPanel>

</td>

</tr>

</table>

</

asp:Content>

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Sep 2008, 07:12 AM
Hi Ravi,

Go through the following help document link which discuss in detail about this error.
Error message “The Controls collection cannot be modified because the control contains code blocks".

Thanks
Shinu.
Tags
TabStrip
Asked by
Ravi Prasad Potturi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or