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

How to use RadAjaxManager on a asp.net page which includes a master page

2 Answers 103 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Mahakar
Top achievements
Rank 1
Mahakar asked on 18 Sep 2008, 05:47 AM
Hi All,

I am using RadAjaxManager on an asp.net page and this page also includes a master page.

On running it gives the error.

The Controls collection cannot be modified because the control contains code blocks (i.e. ). at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) at Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated

Please suggest.

2 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 18 Sep 2008, 11:39 AM
Hello Mahakar,

In order to prevent this error from appearing you could suggest using RadCodeBlock control in your application. For more information on this matter, please review the following help topic.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Maria Ilieva
Telerik team
answered on 18 Sep 2008, 12:01 PM
Hello Mahakar,

In order to solve the problem, you should wrap the script block in a RadCodeBlock control. Also please check the head for runat="server" attribute and if it is present please remove it.
For more information on this matter, please review the following help topic.


All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Mahakar
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or