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

[Solved] Problem with comments imbedded in AjaxPanel

2 Answers 69 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 29 Feb 2008, 02:41 PM
As a test, I am trying to use an AjaxPanel to encompass the content of my page.  I have used comments <%-- ... --%> on the page for documentation.  Because these comments are within the panel, I get the runtime error:

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


How do I work around this problem? I'm sure there must be a way to use documentation within an AjaxPanel!

2 Answers, 1 is accepted

Sort by
0
Alan
Top achievements
Rank 1
answered on 29 Feb 2008, 03:06 PM
In fact the problem may not be the imbedded controls. Elsewhere within the AjaxPanel are entries like this:

'<%# Bind("Address1") %>'


to bind db data to controls.  Also there are entries to retrieve connection strings:

ConnectionString

="<%$ ConnectionStrings:RentalSQL %>"

What do I do with these if they are causing the problem!


0
Maria Ilieva
Telerik team
answered on 04 Mar 2008, 10:15 AM
Hello Alan,

Please check the following help article as it contains information along the lines of the issue that you described.
I hope it helps.

All the best,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Alan
Top achievements
Rank 1
Answers by
Alan
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or