Создал страницу, code behind для нее, унаследовал класс от Bitrix.UI.BXPublicPage:
[CODE]public partial class CalculatorPage : Bitrix.UI.BXPublicPage
{
public CalculatorPage(){}
protected void Page_Load(object sender, EventArgs e){}
}[/CODE]
Вроде все хорошо. Можно помещать на страницу стандартные для ASP.NET компоненты, например, label:
[CODE]<%@ Page Language="C#" AutoEventWireup="true" Inherits="CalculatorPage" CodeFile="calculator.aspx.cs" Title="Заголовок" %>
<asp:Content ID="Content1" ContentPlaceHolderID="bxcontent" runat="server" >
<asp:Label runat="server" Text="Label"></asp:Label>
</asp:Content>[/CODE]
Но как только вместо пытаюсь добавить сторонний компонент, получаю ошибку. Код:
[CODE]<%@ Page Language="C#" AutoEventWireup="true" Inherits="CalculatorPage" CodeFile="calculator.aspx.cs" Title="Калькулятор" %>
<%@ Register Assembly="DevExpress.Web.v8.3, Version=8.3.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" Namespace="DevExpress.Web.ASPxTimer" TagPrefix="dxt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="bxcontent" runat="server" >
<dxt:ASPxTimer ID="ASPxTimerQuote" runat="server" Interval="100" Enabled="true" />
</asp:Content>[/CODE]
Довольно странная ошибка:
[QUOTE]Server Error in '/' Application.
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: [B]The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).[/B]
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +8668018
DevExpress.Web.ASPxClasses.ASPxWebControl.AddStyleSheetReferenceToHead(String reference) +206
DevExpress.Web.ASPxClasses.ASPxWebControl.CreateStyleSheetsHeaderControl() +76
DevExpress.Web.ASPxClasses.ASPxWebControl.OnPreRender(EventArgs e) +169
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074 [/QUOTE]
Поиск Гуглом дает лишь один совет: убрать конструкции вида <%= %>, коих у меня и так нет. Что делаю не так?