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

7 posts, 0 answers
  1. Harry
    Harry avatar
    7 posts
    Member since:
    Mar 2010

    Posted 22 Jul 2011 Link to this post

    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>

     

  2. Harry
    Harry avatar
    7 posts
    Member since:
    Mar 2010

    Posted 26 Jul 2011 Link to this post

    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.
  3. Frans
    Frans avatar
    3 posts
    Member since:
    Jul 2011

    Posted 10 Aug 2011 Link to this post

    I have the same problem. It's almost impossible to test the software in Visual Studio. Is there a solution?
  4. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 16 Aug 2011 Link to this post

    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.

  5. Frans
    Frans avatar
    3 posts
    Member since:
    Jul 2011

    Posted 16 Aug 2011 Link to this post

    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

  6. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 17 Aug 2011 Link to this post

    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.

  7. Frans
    Frans avatar
    3 posts
    Member since:
    Jul 2011

    Posted 16 Feb 2012 Link to this post

    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.
Back to Top