By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,971 Members | 1,732 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,971 IT Pros & Developers. It's quick & easy.

Slow ASP .NET app with DHTML behaviors

P: n/a
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.
Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a


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

Nov 19 '05 #2

P: n/a

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" <ds********@tiscali.co.uk> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.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

Nov 19 '05 #3

P: n/a
Hi Juan,

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

Cheers,
Tom Pester
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" <ds********@tiscali.co.uk> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.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

Nov 19 '05 #4

P: n/a
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" <To********************@pandora.be> wrote in message
news:a1***************************@news.microsoft. com...
Hi Juan,

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

Cheers,
Tom Pester

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" <ds********@tiscali.co.uk> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.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

Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.