Skip to content

Textbox(Hidden) and viewstate

Satish Hirpara

Asked May 24, 2013, 4:08 AM EDT2 answers
Share
LinkedInX
Hello ,

I want to know that can i use textbox(which will be hidden) to maintain the value between postbacks instead of viewstate as viewstate reduses performance so plz let me know which will be better for performance.
         - viewstate or textbox(which will be hidden). 

plz plz reply

Thanx in advance .
Satish Hirpara.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    0
    Hi...
    ViewState is already a hidden property that store things client-side. Hidden textbox value property will get lost on PostBack.
    0
  • 0
    But viewstate decreases performance so is ther eany other way to optimize performance while storing an object client side
    0