Incorrect Display
-
Anyone ever see anything like this? Running from within VS 2010, going to an IE9 browser - I've got an asp.net page that uses two regular HTML TEXTAREA controls (with runat="server" in them so I can load the text into them) When the page loads for the very first time, all is wonderful, all is good. It grabs some text from a Session variable and puts it in one of the TEXTAREAs, leaving the other one empty. I then manually puts text into the second TEXTAREA, pushes a button, and some javascript compares the two. Works fine. Until I try to do it again with different data. The page loads, but the two TEXTAREA fields contain whatever they last used. This occurs even if I close the browser. And if I stop the server. And if I yell at the computer. Nothing will make it display the next text unless I go in and delete the browser temporary files. NO-CACHE doesn't help, of course. ViewState is turned off for everything that allows it. BUT, the absolutely weirdest part is this: if I look at the source of the incorrectly displayed page, it is correct. The new text is in there, the empty TEXTAREA is in there. But the browser is NOT displaying what the source says it should be. Anyone know what's going on?
No dogs or cats are in the classroom. My Mu[sic] My Films My Windows Programs, etc.
-
Anyone ever see anything like this? Running from within VS 2010, going to an IE9 browser - I've got an asp.net page that uses two regular HTML TEXTAREA controls (with runat="server" in them so I can load the text into them) When the page loads for the very first time, all is wonderful, all is good. It grabs some text from a Session variable and puts it in one of the TEXTAREAs, leaving the other one empty. I then manually puts text into the second TEXTAREA, pushes a button, and some javascript compares the two. Works fine. Until I try to do it again with different data. The page loads, but the two TEXTAREA fields contain whatever they last used. This occurs even if I close the browser. And if I stop the server. And if I yell at the computer. Nothing will make it display the next text unless I go in and delete the browser temporary files. NO-CACHE doesn't help, of course. ViewState is turned off for everything that allows it. BUT, the absolutely weirdest part is this: if I look at the source of the incorrectly displayed page, it is correct. The new text is in there, the empty TEXTAREA is in there. But the browser is NOT displaying what the source says it should be. Anyone know what's going on?
No dogs or cats are in the classroom. My Mu[sic] My Films My Windows Programs, etc.
This is a feature, not a bug, that is built into most browsers. A browser's ability to remember what's in a textarea helps you if you start to fill something out on a page and then navigate away from it -- the browser can then remember what you started to type. This browser feature is why you can click the "back" button and find your text still in a box, not wiped away. I'm not sure how to stop it from happening, though. Controlling what the user's browser does is understandably difficult to do.
-
This is a feature, not a bug, that is built into most browsers. A browser's ability to remember what's in a textarea helps you if you start to fill something out on a page and then navigate away from it -- the browser can then remember what you started to type. This browser feature is why you can click the "back" button and find your text still in a box, not wiped away. I'm not sure how to stop it from happening, though. Controlling what the user's browser does is understandably difficult to do.
Even if I explicitly fill the TEXTAREA, it's going to show whatever was there last and not what I tell it to (and what is actually in the source of the page)? And it's not a case of using the back button and seeing old crap. The browser was completely closed and still showed what was there last the next time it ran. Sounds like a HUGE security hole to me, not a feature. Does anyone really want someone to be able to open up a browser and see what you wrote on some page earlier? EDIT: How about I create the page on the fly every time, with a different name, etc. Think that will confuse the browser enough that it will show what I tell it to? EDIT #2: %$%@$#! :mad: The person who wrote the javascript I'm using had all the TEXTAREA (and labels and input boxes, etc) saved somewhere for who-knows-what-reason. I just wiped that part out and now it works fine (-ish). It wasn't the browser hanging onto things for user convenience. Whew. :)
No dogs or cats are in the classroom. My Mu[sic] My Films My Windows Programs, etc.
-
Even if I explicitly fill the TEXTAREA, it's going to show whatever was there last and not what I tell it to (and what is actually in the source of the page)? And it's not a case of using the back button and seeing old crap. The browser was completely closed and still showed what was there last the next time it ran. Sounds like a HUGE security hole to me, not a feature. Does anyone really want someone to be able to open up a browser and see what you wrote on some page earlier? EDIT: How about I create the page on the fly every time, with a different name, etc. Think that will confuse the browser enough that it will show what I tell it to? EDIT #2: %$%@$#! :mad: The person who wrote the javascript I'm using had all the TEXTAREA (and labels and input boxes, etc) saved somewhere for who-knows-what-reason. I just wiped that part out and now it works fine (-ish). It wasn't the browser hanging onto things for user convenience. Whew. :)
No dogs or cats are in the classroom. My Mu[sic] My Films My Windows Programs, etc.
Could be issue be in the browser cache ?? I have in the past has situations where the cache was not cleared and the bowser continued to populate controls with "old data" I believe I fixed the problem by inserting some Meta Tags in the header.... <META http-equiv=PRAGMA content=NO-CACHE> <META http-equiv=Expires content=-1> <META http-equiv=CACHE-CONTROL content=NO-CACHE> This may resolve the issue you are having.