开发者

Classic ASP - Page state not changing

I'm working on a site (that's written in classic asp) and it seems that on alot of pages, where certain buttons caused the page to postback to itself. The contents on the page seem to remain the same, even after it shouldn't. For example a row in a table should dissapear.

However, when I refresh the page without posting back again. (Just revisiting no re-posting) the contents changes. This just happens in Firefox and not in IE. Any idea what's 开发者_StackOverflow中文版causing this?


Without seeing the actual code, nothing more than a guess could be made.

Is it maybe a browser caching issue?

Make sure the pages have the following in them before any content is written to the page:

<%

response.expires = 0
response.addheader "Pragma", "no-cache"
response.addheader "Cache-Control", "no-cache"
%>


Check your HTML. I have the same problem with Firefox if the FORM-Tag is inside the TABLE Tag AND Html is added to TABLE after pageload per Javascript. This results in that not all input parameters are sent.

Not working in FF

<table>
<form>
<tr><td></td></tr>
</form>
</table>

Working in FF

<form>
<table>
<tr><td></td></tr>
</table>
</form>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜