Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState ?

Answer Posted / nikhiul saxena

ViewState is the mechanism ASP.NET uses to keep track of server control state values that don't otherwise post back as part of the HTTP form. ViewState Maintains the UI State of a Page
ViewState is base64-encoded.
It is not encrypted but it can be encrypted by setting EnableViewStatMAC="true" & setting the machineKey validation type to 3DES. If you want to NOT maintain the ViewState, include the directive < %@ Page EnableViewState="false" % > at the top of an .aspx page or add the attribute EnableViewState="false" to any control.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between dispose() and finalize()?

961


Can asp.net work on an nt server?

986


What is preprocessor in .net?

927


Can a master page have more than one contentplaceholder?

920


Why session management is required?

957


What type of code, client-side or server-side, is found in a code-behind file of a Web page?

911


What are the benefits of view state?

898


Does google crawl redirects?

915


Who is using asp.net?

903


What is sta?

925


What is the usage of DelegatingHandler?

1017


How Session outproc in Sqlserver stored?

2717


Can you change a Master Page dynamically at runtime?

928


Define the types of configuration files.

924


What are the advantages and disadvantages of session?

1073