Click to See Complete Forum and Search --> : Problem Deactivating Caching for Textbox Controls


wylbur
08-26-2006, 09:09 PM
Hi,

I’ve got a problem with refreshing a popup.

I have a webpage, which opens a popup when loaded.

On that popup, there is a button that opens another popup (via a method on
the first webpage).

Both popups access the same two data tables in a SQL Server 2005 database
- the second has more detailed information about a particular set of records
than the first - but that isn’t particularly relevant.

When data is modified on the second popup, it causes a postback/submit on
the first popup (via a JavaScript method). The problem is, the values in
the first popup are not being reset to the updated values from the datatable.

Upon further examination, the values are set properly at the end of
the initialization phase, but being set back to the previous values
before the loading phase.

I’ve set the EnableViewState property for all of the textboxes to false,
and they are still false when page load is reached, but the values within
the textboxes are being reset to the previous (invalid) values anyway.

Can anyone give me some idea as to what I need to do to disable
the caching mechanism to prevent the textbox controls from being
reset to their outdated contents?

OS is Windows 2000 SP4, and platform ASP.NET 2.0 - but all postback/submit
is tripped by JavaScript functions. Browser is Internet Explorer 6.

THANKS!