|
INTERVIEW QUESTIONS
MICROSOFT
DOTNET
DETAILS
Question: Explain how Viewstate is being formed and how it’s stored on client.
Answer: The type of ViewState is System.Web.UI.StateBag, which is a dictionary that stores name/value pairs. ViewState is persisted to a string variable by the ASP.NET page framework and sent to the client and back as a hidden variable. Upon postback, the page framework parses the input string from the hidden variable and populates the ViewState property of each control. If a control uses ViewState for property data instead of a private field, that property automatically will be persisted across round trips to the client. (If a property is not persisted in ViewState, it is good practice to return its default value on postback.)
|
|
|
Category |
DotNet Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 6878 users |
Added on |
12/21/2010 |
Views |
73871 |
Rate it! |
|
|
Question:
Explain how Viewstate is being formed and how it’s stored on client.
Answer:
The type of ViewState is System.Web.UI.StateBag, which is a dictionary that stores name/value pairs. ViewState is persisted to a string variable by the ASP.NET page framework and sent to the client and back as a hidden variable. Upon postback, the page framework parses the input string from the hidden variable and populates the ViewState property of each control. If a control uses ViewState for property data instead of a private field, that property automatically will be persisted across round trips to the client. (If a property is not persisted in ViewState, it is good practice to return its default value on postback.) Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What should you do to store an object in a Viewstate?
|
View Answer
|
|
Can any object be stored in a Viewstate?
|
View Answer
|
|
What is Viewstate?
|
View Answer
|
|
What exactly is being serialized when you perform serialization?
|
View Answer
|
|
What should one do to make class serializable?
|
View Answer
|
|
What is serialization, how it works in .NET?
|
View Answer
|
|
What is connection pooling and how do you make your application use it?
|
View Answer
|
|
What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.
|
View Answer
|
|
How does output caching work in ASP.NET?
|
View Answer
|
|
What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.
|
View Answer
|
|
What is CLR?
|
View Answer
|
|
What is the use of ErrorProvider Control?
|
View Answer
|
|
What’s the difference between Response.Write() and Response.Output.Write()?
|
View Answer
|
|
What is the difference between user control an custom control? What are the advantages/disadvantages?
|
View Answer
|
|
Why The JavaScript Validation Not Run on the Asp.Net Button But Run SuccessFully On The HTML Button
|
View Answer
|
|
What is Response object? How is it related to ASP’s Response object?
|
View Answer
|
|
What are the advantages and drawbacks of using ADO.NET?
|
View Answer
|
|
Difference between Panel and GroupBox classes?
|
View Answer
|
|
Difference between Panel and GroupBox classes?
|
View Answer
|
|
What are the features of ADO.Net ?
|
View Answer
|