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

Telerik Global resource file issue

2 Answers 9 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Sanju
Top achievements
Rank 1
Sanju asked on 17 Nov 2020, 12:58 PM

<label class="lbl"><%= Resources.Resource.frmDate%></label>

I am getting below error when i call a global resource file in my page which has a radgrid.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

2 Answers, 1 is accepted

Sort by
0
Sanju
Top achievements
Rank 1
answered on 18 Nov 2020, 12:27 PM
0
Doncho
Telerik team
answered on 20 Nov 2020, 09:25 AM

Hi Sanju,

Thank you for the provided screenshot!

Please ensure all server expressions (<% %>) are wrapped in RadCodeBlock, as described in the RadCodeBlock and RadScriptBlock article.

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <label class="lbl"><%= Resources.Resource.frmDate%></label>
</telerik:RadCodeBlock>

Kind regards,
Doncho
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Ajax
Asked by
Sanju
Top achievements
Rank 1
Answers by
Sanju
Top achievements
Rank 1
Doncho
Telerik team
Share this question
or