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 websites use asp.net?

625


What is clr? Difference between clr & cts?

774


Explain what is viewstate?

649


List some of the important session state modes of asp.net.

606


What is a swagger in web api?

641






Can you use Web API with ASP.NET Web Form?

764


What is Pre-Render event in ASP.NET?

678


What is asp.net version?

618


How will create assesblies at run time?

639


What is role-based security in asp.net?

604


About CLR, reflection and assemblies?

1636


What are client activated objects?

654


Describe the difference between inline and code behind - which is best in?

604


Describe session handling in a webfarm, how does it work and what are the limits?

674


Explain diff between dataset and datareader?

606