about view state and how validation controls will be
executed on client and server

Answer Posted / siddheshwar duchal mob- +91 97

ViewState allows the state of objects (serializable) to be
stored in a hidden field on the page. ViewState is
transported to the client and back to the server, and is not
stored on the server or any other external source. ViewState
is used the retain the state of server-side objects between
postabacks.
Item stored in ViewState exist for the life of the current
page. This includes postbacks (to the same page).
"EnableViewState" :- It allows the page to save the users
input on a form across postbacks. It saves the server-side
values for a given control into ViewState, which is stored
as a hidden value on the page before sending the page to the
clients browser. When the page is posted back to the server
the server control is recreated with the state stored in
viewstate.

The validation can be handeled on client side.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the parts of an http response?

498


What are Master Pages in ASP.NET?

577


How does a content page different from a master page?

578


Explain the different parts that constitute ASP.NET application?

567


Which is the parent class of the ASP.NET server control?

543






Why is mvc better than asp.net?

533


How do you do client-side validation in .net? How to disable validator control by client side javascript?

534


What are the advantages and disadvantages of Using Cookies?

519


What is a viewbag?

509


From which base class all web forms are inherited?

501


What types of data validation events are commonly seen in the client-side form validation?

562


What symbol specifies the beginning of a query string?

537


What is the difference between file-based dependency and key-based dependency?

566


What is the difference between session and application?

506


Can you clarified A Web service can only be written in .NET or not?

539