Is It Possible For Whole Page is Saved In View State?
What Is View State?

Answers were Sorted based on User's Feedback



Is It Possible For Whole Page is Saved In View State? What Is View State?..

Answer / sandeep

View State is nothing but to store peace of information
in the form of hidden field

Yes. It is Possible For Whole Page is Saved In View State

Is This Answer Correct ?    3 Yes 0 No

Is It Possible For Whole Page is Saved In View State? What Is View State?..

Answer / ranjith

When a form is submitted in classic ASP, all form values are
cleared. Suppose you have submitted a form with a lot of
information and the server comes back with an error. You
will have to go back to the form and correct the
information. You click the back button, and what
happens.......ALL form values are CLEARED, and you will have
to start all over again! The site did not maintain your
ViewState.

When a form is submitted in ASP .NET, the form reappears in
the browser window together with all form values. How come?
This is because ASP .NET maintains your ViewState. The
ViewState indicates the status of the page when submitted to
the server. The status is defined through a hidden field
placed on each page with a <form runat="server"> control.
The source could look something like this:

<form name="_ctl0" method="post" action="page.aspx" id="_ctl0">
<input type="hidden" name="__VIEWSTATE"
value="dDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4Q=" />

.....some code

</form>

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

how can i deploy a asp.net webapplication.in a company so that all employees may access application on their different computers and share a single database. plz tell me the steps to do it..thanks.

1 Answers  


What are web server controls in asp.net?

0 Answers  


What are the events in a page life cycle?

0 Answers  


How can you change a Master page dynamically in which event of page life cycle?

2 Answers   Fulcrum Logic,


What is difference between session and cookie?

0 Answers  






Difference Between ReadOnly and Constant Variable in compile time and Run Time.

3 Answers   Phoenix Technologies, Quadrant,


Why would anyone need to implement their own hashtable or linked list?

0 Answers  


what is advantage of developing in asp.net.why the same can't be developed in Java or other web developemnt tool.what are advantages of developers.

4 Answers   IBM,


Explain the differences between managed and unmanaged code?

0 Answers  


How to implement role based security in asp.net mvc? : Asp.Net MVC

0 Answers  


What is the difference between session state and session variables ?

6 Answers   Digital GlobalSoft,


What is form method?

0 Answers  


Categories