09
Sep 09

HOWTO: Limit Viewstate length

In some occa­sions browsers may block or trun­cate  gen­er­ated view­state due to it’s length. This short tweak may solve the issue  by divid­ing the view­state to inde­pen­dent hid­den fields based on the num­ber you pro­vide as value. In this exam­ple max­PageS­tate­Field­Length set to 50 this means when view­state get beyond 50 char­ac­ters it will be bro­ken to dif­fer­ent hid­den fields hold­ing viewstate’s value

Con­tinue reading →