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

Which adapter should you use, if you want to get the data from an access database?

978


How many types of state management are there in asp net?

1029


What is latest version of asp.net mvc? : Asp.Net MVC

1070


What is scope of an application variable in asp.net?

990


What is viewstategenerator?

1205


What is use of <% %> in asp.net?

1013


What are the advantages of asp.net mvc framework? : asp.net mvc

1020


What is redirecting behavior?

962


Explain form level validation and field level validation?

1012


What language is asp.net written in?

1036


Web API uses which library for JSON serialization?

1071


Which object wraps the state or data of a user?

989


What are the differences between clr & cts?

1076


How can you pass multiple complex types in Web API?

1072


How many types of cookies are there in asp.net?

947