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

TreeView and GridView

2 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Silvio Silva Junior
Top achievements
Rank 2
Silvio Silva Junior asked on 03 May 2010, 08:29 PM
Hello.

I would like to use this example:
http://www.telerik.com/community/code-library/aspnet-ajax/general/drag-and-drop-between-radgrid-and-radtreeview.aspx

but, I have a customized Master Page, with no TreeView like the sample, so, I tryed to put the code of Default.aspx (that is the TreeView and GridView together) in a page with my Master Page linked, and the code behind in Default.aspx.cs. But, I got this error:

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


Anyone knows why?

Regards.





2 Answers, 1 is accepted

Sort by
0
Silvio Silva Junior
Top achievements
Rank 2
answered on 03 May 2010, 09:15 PM
For a better understand.

I tryed to use the page Default.aspx/Default.aspx.cs of:

http://www.telerik.com/community/code-library/aspnet-ajax/general/drag-and-drop-between-radgrid-and-radtreeview.aspx

and, link it with a empty master page, but I got this error:

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

I tryed to change the chars: <%= for <%#

but I it didn't work.

What's the best option?


0
Accepted
Princy
Top achievements
Rank 2
answered on 04 May 2010, 09:15 AM
Hello Silvio,

If you have code block inside head tag, then you need to move the code block (i.e. <% ... %>) outside of the head tag.
Go through the following documentations for more information on this.
General Troubleshooting
RadCodeBlock and RadScriptBlock

Regards,
Princy.
Tags
Grid
Asked by
Silvio Silva Junior
Top achievements
Rank 2
Answers by
Silvio Silva Junior
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Share this question
or