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
What is asp.net and how it works?
Define xmlvalidatingreader class.
How dataadapter.fill works?
What is s2s tracking?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
What are sessions and cookies?
What is asp.net web pages?
Explain authorization levels in .net ?
What is difference between abstract class and an interface?
Which object wraps the state or data of a user?
If you are using two select queries and retrieving data. how do you access second query's result set using data reader?
Define machine.config in .net?
What is the difference between localization and globalization?
Describe how ASP.NET maintains process isolation for each Web application?