I am revisiting an aspx page I wrote a while back that needs some performance improvements. When I wrote the page it was early in my understanding of c# and asp.net (not that much further along now...)
The problem I had, is that I had to repopulate values every time I posted back to the page. There were alot of controls on the page, so it could repost back several times on a visit. This creates an obvious performance issue, since I had to hit a large dbase with probably 6 different statements for each post back.
How can I avoid this? Is there a way to populate the variables so they retain their value?
Any help would be appreciated, even if it is just a link to a site, or even the name of a topic I could google.
Thanks.
Patrick
The problem I had, is that I had to repopulate values every time I posted back to the page. There were alot of controls on the page, so it could repost back several times on a visit. This creates an obvious performance issue, since I had to hit a large dbase with probably 6 different statements for each post back.
How can I avoid this? Is there a way to populate the variables so they retain their value?
Any help would be appreciated, even if it is just a link to a site, or even the name of a topic I could google.
Thanks.
Patrick