
Hello,
I have a page that uses RadAjaxManager and AjaxLoadingPanel. Normally, if I don't use ajax, the user is send to an ErrorPage that I definied. If I use Ajax when session expires and I click on a button that is ajaxified, the loading panel shows the image and I get a client error :
"Unexpexted ajax response was receidev from the server.
This may be caused by one of the following reasons:
- Server Transfer.
- Custom http handler.
- Incorrect loading of an "Ajaxified" user control.
Verify that you don't get a server-side exception or any other undesired
behaviour, by setting the EnableAjax property to false."
Thank you.

I am running into an issue with the RadAjaxManager and receiving the *incredibly* annoying .Net error (why they care is beyond me):
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Below is my AjaxManager control markup. The error only occurs when I set EnableAjax to True. If it is False, the error doesn't show up.
| <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" EnableAJAX="true" EnableHistory="true" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> | |
| <AjaxSettings> | |
| <telerik:AjaxSetting AjaxControlID="radFolders" EventName="radFolders_OnNodeClick"> | |
| <UpdatedControls> | |
| <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadGridLoadingPanel" /> | |
| </UpdatedControls> | |
| </telerik:AjaxSetting> | |
| <telerik:AjaxSetting AjaxControlID="radFolders" EventName="radFolders_OnNodeEdit"> | |
| <UpdatedControls> | |
| <telerik:AjaxUpdatedControl ControlID="radFolders" LoadingPanelID="RadTreeViewLoadingPanel1" /> | |
| </UpdatedControls> | |
| </telerik:AjaxSetting> | |
| <telerik:AjaxSetting AjaxControlID="radFolders" EventName="radFolders_OnContextMenuItemClick"> | |
| <UpdatedControls> | |
| <telerik:AjaxUpdatedControl ControlID="radFolders" LoadingPanelID="RadTreeViewLoadingPanel1" /> | |
| </UpdatedControls> | |
| </telerik:AjaxSetting> | |
| </AjaxSettings> | |
| </telerik:RadAjaxManager> | |
Line 880: int updatedLocation = controls.IndexOf(updated);
Line 881:
Line 882: controls.AddAt(updatedLocation, pre);Line 883:
Line 884: PostControlToAjaxify post = new PostControlToAjaxify(updated);
|