TextBox set to Readonly loses value

  • Thread starter Thread starter Doogie
  • Start date Start date
D

Doogie

I have a textbox that I have set to Readonly. This textbox loses it's
value on post back. Setting autopostback = true doesn't keep the
value. How do I keep the value?
 
I have a textbox that I have set to Readonly.  This textbox loses it's
value on post back. Setting autopostback = true doesn't keep the
value.  How do I keep the value?

Is EnableViewState set to true for the control?
 
Is EnableViewState set to true for the control?

Unfortunately we have specific standards in our company that prevent
us from using ViewState (I hate it but it's true). Is that the only
way?
 
Unfortunately we have specific standards in our company that prevent
us from using ViewState (I hate it but it's true).  Is that the only
way?

How about Session? As far as I know Session states are maintained on
the server rather than the client so may be more acceptable if that's
the basis of the objection.
 
How about Session? As far as I know Session states are maintained on
the server rather than the client so may be more acceptable if that's
the basis of the objection.

I believe both are restricted unfortuantely. I"ll do some checking on
that. Thank you!
 
Back
Top