Re: weird problem with session object by keyser
keyser
Wed Apr 30 14:45:12 CDT 2008
hello,
thanks for reply
problem solved
when i submit via a "input type submit" does not work
but if i submit via "input type BUTTON" it work
really strange behavior
unfortunatelly i can't reproduce it in a smaller code
i can't send the entire code with all the includes
to this news... but, thanks for the support
i think the problem is like you suggest :
"""| One possibility is the page is being re-requested so the new value is seen."""
because the "type submit"
bye
ks
"Anthony Jones" <Ant@yadayadayada.com> escribió en el mensaje
news:OFAC9VcqIHA.5096@TK2MSFTNGP02.phx.gbl...
| "keyser soze" <bajopalabra@hotmail.com> wrote in message
| news:OmbMJfVqIHA.4716@TK2MSFTNGP06.phx.gbl...
| > hi,
| > i have an asp page,
| > in which i put a "response.write" for debug
| >
| > *<%= session("x") %>*
| > <%
| > session("x")= "222"
| > %>
| >
| > now, entering the page with session("x")= "111"
| > the code should "response" : *111*
| > but it produce : *222*
| >
| > seems that it send "111" to the buffer
| > but, later, overwrite with "222"
| >
| > i can't reproduce it in other page...
| > but i could send the entire code
| > for you to read
| >
|
| The only way to overwrite whats already been sent to the buffer is to clear
| it and start writing again.
|
| One possibility is the page is being re-requested so the new value is seen.
|
| Another possibility is that you haven't shown all the relevant code and
| something else is changing the value. For example, does your real page mix
| script languages? The order in which script blocks execute is a little less
| than intuative in such a case.
|
| Does the page use includes?
|
|
|
| --
| Anthony Jones - MVP ASP/ASP.NET
|
|