Hi,
I am debugging a lot the last days and I was wondering if it's normal that VS2010 get flooded by script blocks.
Just run the following markup without any code behind in debug and watch your project-explorer.
After a few seconds the view is flooded with script blocks ... it seems that the same script blocks from the controls get registered again on every ajax request. Is there a way to prevent that ?
My VS 2010 sometimes needs 2 minutes to stop debugging and I can watch it removing the script blocks which is a real pain in the a..
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"Timer1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"grid1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
asp:Timer
ID
=
"Timer1"
runat
=
"server"
Enabled
=
"true"
Interval
=
"1000"
>
</
asp:Timer
>
<
div
>
<
telerik:radgrid
ID
=
"grid1"
runat
=
"server"
></
telerik:radgrid
>
</
div
>
</
form
>
6 Answers, 1 is accepted

The primary question is if it is this a bug in scriptmanager or normal behaviour or do I need to deregister the scriptblocks somehow ?
(IE / Firefox memory usage will also raise till they die)
More controls on the page will accellerate the process even more.

Can you confirm that the behavior is different if you are using ASP server controls only? For example, ScriptManager, UpdatePanel and a GridView?
Greetings,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Hi Iana,
I tried several things, with and without Telerik, Framework 3.5 and 4.0. The flood is the same, but the current situation (FW 3.5 and Telerik) seems to be slower than before. Now you can see, that you have to wait until the list with script blocks clears-up, before the next function acts.
We make use of “onmouseover”, “onmouseout”, “onmousedown” as attributes of Image Buttons. Every javascript for every Button(onmouseover="this.src=’Images/btn...MO.png’”) is a script block. We have a lot of buttons and because of that a lot of script blocks. I think we have to look for another solution for the mouse events.
Thanks for the support. We will going to use Telerik in our solutions.
Greetings,
Frans,
247Dynamics
Indeed, I agree that the more script controls you have on the page and the more custom javascript you have, the Visual Studio will be slower upon debugging. However I am not sure if we can affect Visual Studio in such a manner that all scripts go into the same script block. We will need to perform further investigation for that. Meanwhile you can see if you can find some solution in the Visual Studio forums.
Best wishes,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

In VisualStudio go to the Project Properties, Tab Web and check the Silverlight box.