Answer Posted / taran
there r no types of viewstate since viewstate itself is one
of the type of asp.net state management. viewstate: used to
save data within postbacks in hidden fields. stored data can
be encrypted for more security via 1) web.config file's
<Configuration>
<system.web>
<pages viewStateEncryptionMode="Always"/>
</system.web>
</configuration>
or 2) page directive:-
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default"
ViewStateEncryptionMode="Always"%>
can set to off:
1) at entire page level or at specific control level
2) at machine or application level in web.config file
| Is This Answer Correct ? | 28 Yes | 1 No |
Post New Answer View All Answers
What is postback and autopostback in asp.net?
What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?
What are the different types of sessions in asp.net? Name them?
When you use Ajax controls in the ASP.NET application?
What are the new data controls in asp.net 2.0?
What is use of <% %> in asp.net?
Can we override the enablepartialrendering property of the scriptmanager class?
What events will occur when a page is loaded?
How you will handle session when deploying application in more than a server?
What is jade template engine?
Explain the use of dataadapter.
Which protocol is used in a web api?
What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC
Differentiate between early binding and late binding.
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?