Hi,
Here is the scenario I am having trouble with. I have a page with multiple RadAjaxPanels each with its own info. Each panel has a link which opens a RadWindow that contains a form. Once the user hits submit on this form the window closes and calls the OnClientCloseX() javascript function as per the HelpDesk example (muliple functions for each of the panels). Each of the panels have their own codebehind to handle the ajax request which would update their panel data. However the
$find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest(-1);
line causes the error shown on the bottom of the post. If I replace the line with
$find("ctl00_LeftPanel_RadAjaxPanel1").ajaxRequest(-1);
then the panel gets updated using Ajax correctly. This is the code that is generated by the ClientID request. What do I need to change to avoid the error and not have to enter the ID manually for all of the panels. The result is at the bottom of the post.
Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Source Error:
Stack Trace:
Here is the scenario I am having trouble with. I have a page with multiple RadAjaxPanels each with its own info. Each panel has a link which opens a RadWindow that contains a form. Once the user hits submit on this form the window closes and calls the OnClientCloseX() javascript function as per the HelpDesk example (muliple functions for each of the panels). Each of the panels have their own codebehind to handle the ajax request which would update their panel data. However the
$find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest(-1);
line causes the error shown on the bottom of the post. If I replace the line with
$find("ctl00_LeftPanel_RadAjaxPanel1").ajaxRequest(-1);
then the panel gets updated using Ajax correctly. This is the code that is generated by the ClientID request. What do I need to change to avoid the error and not have to enter the ID manually for all of the panels. The result is at the bottom of the post.
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: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
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. <% ... %>).] |