J
Jonathan Wood
I'm trying to get a good understanding of this.
I have a page that is fairly complex and makes a number of database
accesses. I'd love to cache it but, since the data will be specific to the
user's current settings, that doesn't really seem to be a useful option.
I also have a button that should change some data and then refresh the page.
The problems are:
1) The entire page rebuilds in the load event before the button handler is
called. I know I can test IsPostBack, but when the data changes, I really
need to rebuild the entire page.
2) Since the page has already been build when the button handler is called,
changing the data has no effect.
It almost seems like it would be better if the button handler was called
first. At any rate, I'm just wondering if some of you have dealt much with
this quirk and how best to deal with it.
Thanks.
I have a page that is fairly complex and makes a number of database
accesses. I'd love to cache it but, since the data will be specific to the
user's current settings, that doesn't really seem to be a useful option.
I also have a button that should change some data and then refresh the page.
The problems are:
1) The entire page rebuilds in the load event before the button handler is
called. I know I can test IsPostBack, but when the data changes, I really
need to rebuild the entire page.
2) Since the page has already been build when the button handler is called,
changing the data has no effect.
It almost seems like it would be better if the button handler was called
first. At any rate, I'm just wondering if some of you have dealt much with
this quirk and how best to deal with it.
Thanks.