For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > August 2005 > Slow ASP .NET app with DHTML behaviors









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Slow ASP .NET app with DHTML behaviors
David Tilman

2005-08-30, 9:56 pm

I've created a web application using ASP .NET that creates tables similar to
Gantt charts. There are 5 tables will 180 cells each, so there are about 900
cells on the web page. I had javascript in the attributes of each cell to
react to various events (onmouseout, onmouseover, onmouseup, onmousedown) to
handle highlighting and selecting cells in the chart.

I wanted to try to make the application more efficient and have a smaller
HTML file, so I removed the javascript from the cells and placed it in a
behavior file (htc file) and gave each cell a CSS class, which pointed to the
behavior file. The application works just as it did before and I managed to
shrink the HTML file from 450 KB to 50 KB.

The problem is that when I have a postback or go to any other web page
Internet Explorer takes up 99% of the CPU cycles for a couple seconds when
the page is unloading. This means that I could have my application page up in
IE and even if I type a web site in the address bar, IE is still slow for a
couple seconds going to the other web site. Firefox doesn't seem to be nearly
as slow.

Are there any best practices for DHTML behaviors regarding this kind of use
that I'm not aware of? Should I expect this slowness if 900 cells have a CSS
class that point to the behavior? I didn't have this problem when there was
javascript in each of the 900 cells.
Morgan Bachu

2005-08-31, 3:58 am



be careful!

don't mention anything negative about microsoft stuff on this newsgroup

you will get a response like

"don't complain about 99% cpu for 2 seconds, just accept it and be
thankful for what bill has given"

i hope you find a solution quickly

Juan T. Llibre

2005-08-31, 6:59 pm


I disagree with you.

You *can* dissent with anything you like,
and you can criticize "microsoft stuff" as much as you like,
whatever "microsoft stuff" means to you.

But, we'd like to see the *technical reasons*
for the criticism of what you term "microsoft stuff".




Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Morgan Bachu" <dsfsdfs878@tiscali.co.uk> wrote in message
news:1125478330.625387.52410@g14g2000cwa.googlegroups.com...
>
>
> be careful!
>
> don't mention anything negative about microsoft stuff on this newsgroup
>
> you will get a response like
>
> "don't complain about 99% cpu for 2 seconds, just accept it and be
> thankful for what bill has given"
>
> i hope you find a solution quickly
>



tom pester

2005-08-31, 6:59 pm

Hi Juan,

Morgan is our local throll John Rivers in case you didn't notice :)

Cheers,
Tom Pester
[color=darkred]
> I disagree with you.
>
> You *can* dissent with anything you like,
> and you can criticize "microsoft stuff" as much as you like,
> whatever "microsoft stuff" means to you.
> But, we'd like to see the *technical reasons*
> for the criticism of what you term "microsoft stuff".
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaņol
> Ven, y hablemos de ASP.NET...
> ======================
> "Morgan Bachu" <dsfsdfs878@tiscali.co.uk> wrote in message
> news:1125478330.625387.52410@g14g2000cwa.googlegroups.com...
>


Juan T. Llibre

2005-08-31, 6:59 pm

Thanks, Tom.

I don't usually try to keep up with troll's devious machinations.
What a tangled web he weaves!

:-)

*That* alias goes into the killfile !
I wonder how many aliases he'll try to morph into.



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"tom pester" <Tom.PesterDELETETHISSS@pandora.be> wrote in message
news:a1a977a2132d1b8c77c744e71b2ae@news.microsoft.com...
> Hi Juan,
>
> Morgan is our local troll John Rivers in case you didn't notice :)
>
> Cheers,
> Tom Pester

[color=darkred]


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com