Last post Dec 01, 2009 04:09 AM by lump25
Nov 29, 2009 11:05 AM|lump25|LINK
i have an web aplication which make some kind of very big html table. in fact a table wiht appr. 200 rows and 200 columns.
User select some filters and program dinamicly create table with linkbuttons inside of table tags ("<td></td>") depend on data in database. i make some kind of optimization and when i was measuring, server build all this in less than second, what is cool.
The problem starts when server send this html source to browser. browser get this blast of html and in worst scenario client need about 5 second to show this result in browser, of course depend on procesor speed on client. But when i was watching procesor
on client, uses only one core to build and show all this html in browser, what is big pity shame in my way.
I build this html on that way:
PlaceHolder4.Controls.Add(new LiteralControl("<table style=\"font-size: 12px\">"));
LinkButton lb = new LinkButton();
.......................and so on........................
My questions are:
1.) this is the problem of browser which knows to use only on core and i cannot do nothing about it?
2.) Are any other controls or element in Visual Studio which browser faster build together?
Thank you very much for any suggestions!
Nov 29, 2009 02:44 PM|Danish Ali|LINK
The slow rendering problem in you web page is because of large table. Mostly Browser does not render the table until they do not find the end tag of table. That's why large tables take time to render.
There are two ways to improve it.
1- divide your big table in small tables.
2- use div instead of table, div renders very quickly as compare to tables.
Hope it will help.
Dec 01, 2009 04:09 AM|lump25|LINK
Thank you for suggestion!
I 'll try to do it with div tags.
I will report about it.