App too slow :-/
-
Ive created a pretty big ASP.NET app which does financial calculations and the like. It worked fine all the way through development. What I failed to try during dev though was what would happen with more than one set of values. It breaks down to a treacle like speed. Now up till now, the dedicated server that I tested it on, ran it MUCH faster than running it in VS2008. But then it all changed, and now its slow as hell. Its a set of 5 AJAX update panels which each run according to what you press. Now as far as I can tell, the code is executing pretty speedily, but what slows it all down is the transfer of that to the client browser(maybe why it runs faster locally?). So, is it possible that every time one of my updatepanels(all set to conditional with children as triggers) is updating, that it is also resending all the data in the others? Thanks. P.S. I know this is very vague, but theres far too many factors to be able to post one block of code :-/
Strive to be humble enough to take advice, and confident enough to do something about it.
-
Ive created a pretty big ASP.NET app which does financial calculations and the like. It worked fine all the way through development. What I failed to try during dev though was what would happen with more than one set of values. It breaks down to a treacle like speed. Now up till now, the dedicated server that I tested it on, ran it MUCH faster than running it in VS2008. But then it all changed, and now its slow as hell. Its a set of 5 AJAX update panels which each run according to what you press. Now as far as I can tell, the code is executing pretty speedily, but what slows it all down is the transfer of that to the client browser(maybe why it runs faster locally?). So, is it possible that every time one of my updatepanels(all set to conditional with children as triggers) is updating, that it is also resending all the data in the others? Thanks. P.S. I know this is very vague, but theres far too many factors to be able to post one block of code :-/
Strive to be humble enough to take advice, and confident enough to do something about it.
If you are using the Microsoft AJAX UpdatePanel, or any derived from it, then yes, it is sending far to much data in the postback. Although only the one portion of the page is being refreshed, it still follows the typical page lifecycle, to a certain extent at least. You can try using PageMethods or other more direct Ajax methods.
I know the language. I've read a book. - _Madmatt
-
Ive created a pretty big ASP.NET app which does financial calculations and the like. It worked fine all the way through development. What I failed to try during dev though was what would happen with more than one set of values. It breaks down to a treacle like speed. Now up till now, the dedicated server that I tested it on, ran it MUCH faster than running it in VS2008. But then it all changed, and now its slow as hell. Its a set of 5 AJAX update panels which each run according to what you press. Now as far as I can tell, the code is executing pretty speedily, but what slows it all down is the transfer of that to the client browser(maybe why it runs faster locally?). So, is it possible that every time one of my updatepanels(all set to conditional with children as triggers) is updating, that it is also resending all the data in the others? Thanks. P.S. I know this is very vague, but theres far too many factors to be able to post one block of code :-/
Strive to be humble enough to take advice, and confident enough to do something about it.
I think if you use updatepanel everything else in the page will need to send back to the server doesn't matter they are in the same update panel or not. use web service to refresh data will be better?
Still a newbie.. learning
-
Ive created a pretty big ASP.NET app which does financial calculations and the like. It worked fine all the way through development. What I failed to try during dev though was what would happen with more than one set of values. It breaks down to a treacle like speed. Now up till now, the dedicated server that I tested it on, ran it MUCH faster than running it in VS2008. But then it all changed, and now its slow as hell. Its a set of 5 AJAX update panels which each run according to what you press. Now as far as I can tell, the code is executing pretty speedily, but what slows it all down is the transfer of that to the client browser(maybe why it runs faster locally?). So, is it possible that every time one of my updatepanels(all set to conditional with children as triggers) is updating, that it is also resending all the data in the others? Thanks. P.S. I know this is very vague, but theres far too many factors to be able to post one block of code :-/
Strive to be humble enough to take advice, and confident enough to do something about it.
You may wish to check all the criteria which might have slowed down your application. Following link should help you: Performance Strategies for Enterprise Web Site Development[^] ASP.NET Best Practices for High Performance Applications[^] 10 ASP.NET Performance and Scalability Secrets[^] Moreover, I would suggest try not to use too many update panels. Reloading the page instead will be better.
Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.