This is a migrated thread and some comments may be shown as answers.

script block flood ... is that working as intended ?

6 Answers 142 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Harry
Top achievements
Rank 1
Harry asked on 22 Jul 2011, 11:37 PM

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

Sort by
0
Harry
Top achievements
Rank 1
answered on 26 Jul 2011, 03:24 PM
Noboby ?
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.
0
Frans
Top achievements
Rank 1
answered on 10 Aug 2011, 08:29 PM
I have the same problem. It's almost impossible to test the software in Visual Studio. Is there a solution?
0
Iana Tsolova
Telerik team
answered on 16 Aug 2011, 11:28 AM
Hi Frans,

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.

0
Frans
Top achievements
Rank 1
answered on 16 Aug 2011, 02:39 PM

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

0
Iana Tsolova
Telerik team
answered on 17 Aug 2011, 09:45 AM
Hi Frans,

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.

0
Frans
Top achievements
Rank 1
answered on 16 Feb 2012, 10:22 AM
At last I found a post with a solution: http://vishaljoshi.blogspot.com/2009/06/disabling-script-debugging-with-vs-2010.html 
In VisualStudio go to the Project Properties, Tab Web and check the Silverlight box.
Tags
Ajax
Asked by
Harry
Top achievements
Rank 1
Answers by
Harry
Top achievements
Rank 1
Frans
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or