G
Guest
I am currently experiencing a problem whereby browser caching seems to be
causing my page to be invalid.
I am using a standard DataGrid WebControl which is bound to a DataView
object. I use a link in the DataGrid control to go to a details page for the
record to edit a number of different fields for the record. After updating
the dataset and database, I use a response.redirect (I’ve also tried
Server.Transfer) to return to the first page with the DataGrid. The problem
is that the DataGrid does not reflect the changes I’ve made to the database.
If I step the page load procedure in debug mode, the DataGrid does update and
I see the new data. If I don’t, I don’t see the new data until I hit the
refresh button or click on the link to go to the page directly.
I’ve tried to use the HTML metatags ‘<meta http-equiv="Pragma"
content="no-cache">’ and ‘<meta http-equiv="expires" content="0">’ but they
don’t seem to work. I have the same problem if I’m using IE or Firefox.
I’ve also tried to use ‘OutPutCache Location=â€noneâ€â€™ (which as I don’t think
is related) with no success.
Any help, ideas, comments, suggestions would be appreciated.
causing my page to be invalid.
I am using a standard DataGrid WebControl which is bound to a DataView
object. I use a link in the DataGrid control to go to a details page for the
record to edit a number of different fields for the record. After updating
the dataset and database, I use a response.redirect (I’ve also tried
Server.Transfer) to return to the first page with the DataGrid. The problem
is that the DataGrid does not reflect the changes I’ve made to the database.
If I step the page load procedure in debug mode, the DataGrid does update and
I see the new data. If I don’t, I don’t see the new data until I hit the
refresh button or click on the link to go to the page directly.
I’ve tried to use the HTML metatags ‘<meta http-equiv="Pragma"
content="no-cache">’ and ‘<meta http-equiv="expires" content="0">’ but they
don’t seem to work. I have the same problem if I’m using IE or Firefox.
I’ve also tried to use ‘OutPutCache Location=â€noneâ€â€™ (which as I don’t think
is related) with no success.
Any help, ideas, comments, suggestions would be appreciated.