viewstate - EnableViewState="false" does not work and Why asp.net view sate automatically decoded and stored in browser -
i used asp.net text-box , set
enableviewstate="false"
then run code , enter sample texts , enforced post-back (which means click button )then textbox control retain value .
what wrong in code ?
how can disable view-state ?
<asp:textbox id="textbox1" enableviewstate="false" runat="server"></asp:textbox> <asp:button id="button1" runat="server" text="button" onclick="button1_click" />
then have 1 doubt.
why asp.net view sate automatically decoded , stored in browser. read articles article says it’s security purpose.
the user gives her/his information , use particular browser , maintain browser why view sate encoded. reasons decode view state ?
well regarding first question can confusing @ beginning. textbox classes implement ipostbackdatahandler interface.
a nice explation can found here-- http://www.codeproject.com/articles/378180/view-state-for-textbox-and-other-controls-that-imp
regarding second question encryption of viewstate, must know user accessing page not 1 can view viewstate. pages posted on un encrypted channels also, body looking on wire has access it. user can never trusted.
my advice in details view state on msdn. in long run.
Comments
Post a Comment