I saw a few different fixes posted by Telerik and I just want to clearify that I understand them so that I can use the best one.
First, these are not the issue for my problem page:
Calls to Response.Write():
Response filters:
HttpModules:
Calls to Server.Transfer():
Second, after pouring over many posts within and without telerik, I think I understand that this is not really a telerik issue, but an ajax issue, is this correct ?
I see that one cause for this is clicking to many times, or , sending to many ajax requests ?
In essense, when ajax sends the page back, their are other parts of the page that are trying to be rendered along with what ajax is trying to render ?
Here are the questions I have about the proposed fixes I have seen in telerik posts:
1) EnableEventValidation=false. This scares me, through a small amount of research I see that this is ok for pages that do not need a lot of security ? I wonder what "a lot" means. Plus, I intend on using my current grid scheme as a template for many other grid pages some of which have data CRUD.
2) Anyway, I also found this as a proposed fix, but it looks like I am playing with a part of EnableEventValidation=false.
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == 'function' && ValidatorOnSubmit() == false) return false;
return true;}
function ValidatorOnSubmit() {if (!document.getElementById('__EVENTVALIDATION')) {
alert('Please wait for the page to load completely'); document.location.href = 'http://something';return false;}
else {return true;}}
// -->
</script>
3) Another proposed fix is : <AnyAjaxEnabledControl>.SetMaxRequestQueueSize(5); I tried to put this in my page load but it
looks like It is not in my version of telerik ? ("Telerik.Web.UI.dll 2008.3.1125.35 Trial version").
I code it like this :
if
(!IsPostBack)
{
RadAjaxManager1.SetMaxRequestQueueSize(0);
}
Compiler Error Message: CS1061: 'Telerik.Web.UI.RadAjaxManager' does not contain a definition for 'SetMaxRequestQueueSize' and no extension method 'SetMaxRequestQueueSize' accepting a first argument of type 'Telerik.Web.UI.RadAjaxManager' could be found (are you missing a using directive or an assembly reference?)
Thanks for your time and your Rad Controls !!