J
JP
Hi all.
I'm having a problem with a postback issue and I think it's cache related.
Here's my setup:
I have a web site that has a signup section. This has simple things like
name, age, birth date, etc. When the user visits this page for the first
time, a person's data object that is used to store the user's name, age,
birth date, etc. is created and stored in session. On the first visit to this
page, the object is empty. Whenever the user posts back to this page, any
text from the text boxes is stored into the person's data object and the
session variable is updated.
There is a drop down control which causes the page to automatically post
back to itself and that's the year of birth drop down list. If the user
selects any year between 1993 and 2007, the page posts back to itself and a
new text box control appears for the email address of the person's parent (we
have to monitor minors 14 and under).
My problem is that sometimes when the year of birth drop down list is
changed, all the text in the other text boxes is erased. I've gone through
the code a lot and I think this is a caching issue. I can't find anything
wrong with how the code works and I don't see any way that the code is
erasing the session variable. This leaves me to believe this is a caching
issue. Does anyone know how to check caching settings in the web.config file,
app.config file, or anywhere else?
I'm having a problem with a postback issue and I think it's cache related.
Here's my setup:
I have a web site that has a signup section. This has simple things like
name, age, birth date, etc. When the user visits this page for the first
time, a person's data object that is used to store the user's name, age,
birth date, etc. is created and stored in session. On the first visit to this
page, the object is empty. Whenever the user posts back to this page, any
text from the text boxes is stored into the person's data object and the
session variable is updated.
There is a drop down control which causes the page to automatically post
back to itself and that's the year of birth drop down list. If the user
selects any year between 1993 and 2007, the page posts back to itself and a
new text box control appears for the email address of the person's parent (we
have to monitor minors 14 and under).
My problem is that sometimes when the year of birth drop down list is
changed, all the text in the other text boxes is erased. I've gone through
the code a lot and I think this is a caching issue. I can't find anything
wrong with how the code works and I don't see any way that the code is
erasing the session variable. This leaves me to believe this is a caching
issue. Does anyone know how to check caching settings in the web.config file,
app.config file, or anywhere else?