locked
asp.net webform load page is so heavy RRS feed

  • Question

  • User-381059448 posted

    i have a SSRS webform asp.net page with Five dynamically TreeView in Load () .

    my question is : there are any solution to make my web application more light then i have when i load my page on server SSRS

    Tuesday, February 12, 2019 10:12 AM

All replies

  • User-2054057000 posted

    A general approach is to use jQuery AJAX method to bind your controls.

    You can bind them one after the other and not on the same time. like:

    function bindone()
    {
      $.ajax({
       // 
        success: function (result,status,xhr) {
          // bind 1st control
          bindtwo();
        }
      });
    }
    
    function bindtwo()
    {
      $.ajax({
       // 
        success: function (result,status,xhr) {
          // bind 2nd control
          bindthree();
        }
      });
    }
    
    function bindthree()
    {
      $.ajax({
       // 
        success: function (result,status,xhr) {
          // bind 3rd control
          bindfour();
        }
      });
    }
    
    function bindfour()
    {
      $.ajax({
       // 
        success: function (result,status,xhr) {
          // bind 4th control
          bindfive();
        }
      });
    }
    
    function bindfive()
    {
      $.ajax({
       // 
        success: function (result,status,xhr) {
          // bind 5th control
        }
      });
    }

    Reference - How to Bind GridView with jQuery AJAX Step by Step – No Page Postback

    Tuesday, February 12, 2019 11:52 AM
  • User1120430333 posted

    i have a SSRS webform asp.net page with Five dynamically TreeView in Load () .

    my question is : there are any solution to make my web application more light then i have when i load my page on server SSRS

    Are you using dataset and datatable, like in the documentation?

    https://docs.microsoft.com/en-us/sql/reporting-services/application-integration/using-the-webforms-reportviewer-control?view=sql-server-2017

    Tuesday, February 12, 2019 12:07 PM