|
-
Apr 20th, 2004, 04:12 AM
#1
Thread Starter
Lively Member
textbox value disappears on BACK !!
I have a textbox in my ASP.Net page.
It gets its value from a Pop-Up. User doesnt enter anything.
After that user moves to the next page.
But when he comes back... values in all other controls are retained except that of the textbox.
what could be the reason ???
-
Apr 21st, 2004, 10:58 AM
#2
Fanatic Member
Is the textbox being populated by client side script?
-
Apr 21st, 2004, 12:29 PM
#3
Frenzied Member
I know this is a work around, but cookies could be used for this. obviously it would be better fixing the problem to start off with.
Have I helped you? Please Rate my posts. 
-
Apr 21st, 2004, 12:56 PM
#4
Fanatic Member
Its a bit long winded to explain whats happening on your page there, so try looking up this "saveHistory behavior" on MSDN. That will give you the low-down on the problem and the solution.
If you have explorer 5 or higher then the following should sort you out:
Add this style to the header of the page:
Code:
<meta NAME="save" CONTENT="history">
<style>
.saveHistory {behavior:url(#default#savehistory);}
</style>
-
Apr 21st, 2004, 01:00 PM
#5
Fanatic Member
Sorry, forgot to tell you to add the class attribute to the element you want.
Code:
<input class=saveHistory>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|