Login  
Search All Forums
Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
AuthorForum: PowerWEB LiveControls for ASP.NET
Topic: Problem the browser freezes during refreshing the updates in a datagrid
starter

From: kuwait, Kuwait
Posts: 3
Member Since: 11/30/05
posted November 30, 2005 4:51 AM

I am using live controls for my web page which contains almost 130 rows and 6 colums of data,My problem is that every time the page refreshes the browser freezes for about 60 seconds or so can I get help in solving this problem , thank in advance
John Talarico



From: Rome, NY USA
Posts: 630
Member Since: 06/01/05
posted November 30, 2005 9:54 AM

In order to determine the cause, we need some more information on how the page is constructed.

First, if using LiveControls there should be no need to refresh the page. What is causing the refresh? What activities are being performed in each refresh? Assuming that you are using a LiveDataGrid, when is data being bound to the control? In each Page_Load or in the first load only when IsPostBack is false?
















starter

From: kuwait, Kuwait
Posts: 3
Member Since: 11/30/05
posted December 7, 2005 1:12 AM

I am using the Livedatagrid control on my page to display the table. I am also using LiveTimer to refresh the livedatagrid. every 2 minute, the LiveTimer reload the LiveDatagrid with the updated records from database. at this time, the whole browser is freezing for 30-40 seconds.
First time the data is bounding to the LiveDataGrid in the first page_Load only when IsPostBack is false. after that the LiveTimer is updating the LiveDataGrid.

note: when the browser freeze the cpu usage is 100% then after updation the cpu goes normal again.


Thank you
John Talarico



From: Rome, NY USA
Posts: 630
Member Since: 06/01/05
posted December 7, 2005 8:58 AM

In the LiveDataGrid are there any other controls in the cells (TextBoxes, RadioButtons, DropDownLists, etc.) or is it simply formatted text? Also what type of browser are you using (IE, Firefox, Opera) and have you tried other browsers to see if there is a difference in refresh time?
starter

From: kuwait, Kuwait
Posts: 3
Member Since: 11/30/05
posted December 10, 2005 12:31 AM

There are no other controls in the cells it is simply formatted text. I am using IE 6 and Avant Browser
John Talarico



From: Rome, NY USA
Posts: 630
Member Since: 06/01/05
posted December 12, 2005 10:40 AM

To see if we could replicate this behavior, we constructed a page that renders a LiveDataGrid containing 4 columns and 25 rows. Using a LiveTimer Tick event, the page adds 25 rows to the table and calls DataBind() again forcing the LiveDataGrid to re-render.

In the first few iterations, the browser CPU utilization briefly jumps to between 5% and 15%. This does not cause the browser to "freeze". Only when the row count approaches 250 - 300 does the CPU utilization increase above 50%. At this time, the browser does appear to pause while redrawing the new table contents generated by the grid. We are not seeing the 100% utilization behavior, but can easily assume that increased complexity in the grid, the data or other page elements may increase these numbers.

We ran a parallel test using a LiveLabel instead of a LiveDataGrid. In this test, the DataSource is parsed on the server in each Tick event and an HTML table is constructed using a StringBuilder object. Then, the LiveLabel's Text property is set to the string representing the HTML table. In this test, CPU utilization during the update started at 4% with 50 rows and increased to 15% when 300 rows were drawn. At 500 rows, CPU was up 45% during the page rendering.

When the LiveDataGrid, or any other LiveControl is updated, the necessary client script code is returned in the HTTP response. The browser executes the code, updating the document. Using the LiveLabel method we reduced the amount of data being parsed and rendered by the browser to the bare minimum. This method, while fairly efficient, does not allow you to easily manipulate the resultant table in a server-side object hierarchy. 

If possible, you should consider either reducing the amount of data rendered in each callback. If all data must be displayed on a single page, then employing a LiveLabel technique may be the best option. The other alternative is to continue using a LiveDataGrid and to reduce the number of visible rows through the use of pagination or configuring your data query to only retrieve fewer rows.
opel-astra

From: UAE, United Arab Emirates
Posts: 6
Member Since: 03/22/05
posted December 19, 2005 12:45 AM

Hi,
me too is having the same issue. i tried the same with a LiveLabel as u specified.
but now whenever my page is loaded and refreshed 2-3 times, i am getting the following error message
---
The server viewstate cache has timed out. The application was unable to successfully recover state. To address this exception, modify your web.config to use client-side viewstate caching, or to extend the server cache timeout value.

----
how can i solve this??
Thank you
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 19, 2005 12:29 PM

Please create the simplest possible webform that you can that recreates the issue, then zip up the webform files and email them to support@dart.com

If the form is simple enough I can probably take a look and tell you what is wrong.

toresten

From: oslo, AL Norway
Posts: 1
Member Since: 12/19/05
posted December 20, 2005 7:16 AM

Same error message here.
Solved by adding a reference to the Dart.PowerWEB.LiveControls.
kennyshah18
starwars_mmu@yahoo.com

From: Shah Alam, Malaysia
Posts: 14
Member Since: 07/21/06
posted July 24, 2006 9:43 PM

Hey it happen to me too. I have a livedatagrid that is binding over 300 over rows. In each rows I have a LiveDropdownlist and a LiveRadioButtonlist. Each time the grid is refreshing the CPU uti will go up to 100%. I tried using IE,Opera & Firefox. It ran smoothly on Opera, not so smooth in Firefox and the worst in IE. The CPU uti is always 100%. care to explain why ? But somehow when i view the page on other pc is cpu is always low. only on server side.
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted July 25, 2006 2:35 PM

The last release of LiveControls included a fix for at least one case where this error occurred. Please be sure you are using the latest product by downloading the appropriate file from http://www.dart.com/support/updatecenter.asp .
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX