If you are prepare for Interview then, this set of questions would be add some questions related to view state(state management) in your brain Smile . So lets check your knowledge about view state. If you think you have enough knowledge about view state then you can take it as a Quiz.

We have written this career set after the success of our Interview Questions(more then 100 Q-A), So if you are prepare for .net developer interview then don't miss to read our complete set.
If you read it then you will cover 80% interview question so click here for read complete set.
Apart from that we have more then 100 SQL Interview Queries, You can read both above set after read this post. Happy learning
So lets start view state quiz 

1). What is View State in
Ans: View state is nothing but a method that the ASP.NET use to preserve page and control values between postbacks. When the HTML markup for the page is rendered, the current state of the page and values that must be retained during postback are serialized into base64-encoded strings. This information is then put into the view state hidden field.

2). View state is client-side or server side state management technique?
Ans: View state is client-side state management technique

3). What are the client-side state management technique supported by ASP.NET?
Ans: View state
Control state
Hidden fields
Query strings

4). View state is used by page aromatically or we need to apply it manually? 
Ans: View state is used automatically by the ASP.NET page framework to persist information that must be preserved between postbacks.

5). When you can use(take advantage of vs) view state?
or What you can do by use view state?
Ans: a) Keep values between postbacks without storing them in session state or in a user profile.
b) Store the values of page or control properties that you define.
c) Create a custom view state provider that lets you store view state information in a SQL Server database or in another data store.

6). What are the advantages of using view state?
Ans: No server resources are required : The view state is contained in a structure within the page code.
Simple implementation : View state does not require any custom programming to use. It is on by default to maintain state data on controls.
Enhanced security features : The values in view state are hashed, compressed, and encoded for Unicode implementations, which provides more security than using hidden fields.

7). What are the limitations of view state?
Ans: Limitations:
Because view state is stored in the page, it results in a larger total page size.
ASP.NET uses view state only with page and control properties.
View state isn't a good place to store sensitive information that the client shouldn't be allowed to see. click on the below link to keep continue for same type of questions with answers.

Don't forgot to read our very popular set
100 SQL Interview Queries 

Post a Comment

* Please Don't Spam Here. All the Comments are Reviewed by Admin.