Last post Dec 07, 2009 08:28 AM by maingi4
Dec 06, 2009 04:09 AM|guysch|LINK
my problem is this:
i have a ajaxcontroltoolkit combobox inside an updatepanel
when i first open the page and change it values everything works great, requests are getting to the server and i get responses in like 20 ms
but... if i leave the page open in my browser for 10 minutes and dont touch it
and then suddenly change the combobox selection i see in firebug that it dosnt start a request,
only if i change a few more times suddenly the "hang" releases and requests and responses are getting through .
can anyone tell me why is that?...
Dec 07, 2009 05:20 AM|maingi4|LINK
If u leave the browser open and do nothing in it, the browser unloads all the client scripts back in the memory somewhere
and reaccesses it when u again start doing something on it. So ur ajax request would work in the first time only u just
have to wait longer before it sends the requests as the browser reloads all the client side scripts (ajax scripts) and then
begins to execute them.
By reloading and unloading i simply mean that the scripts get relocated far down in ur computers memory and it takes time for
ur comp to reaccess it and push it in a more easily accessible area.
Dec 07, 2009 07:38 AM|guysch|LINK
so from what you are saying this should happen to everyone.... not just to me.
is this a familiar updatepanel bug?...
Dec 07, 2009 07:45 AM|maingi4|LINK
no this is mostly a browser/windows working fundamental, its apparent with ajax as the scripts are large in size.
Dec 07, 2009 08:21 AM|guysch|LINK
but i dont have an ajax script.. the update panel makes its own script right?...
i have a few update panels on that page. maybe that the problem ?...
Dec 07, 2009 08:28 AM|maingi4|LINK
asp.net registers it own script libraries in the client side so there is pretty much nothing u can do abt that.
if u multpliple panels ur rendering might slow down (us updatemode="conditional" wherever applicable to resolve this)
but if the request takes time to initiate, then u'll just have to wait. U can give a updateprogress information to the user
to tell him/her something is happening, that part will execute immediately.