What does the "EnableViewState" property do? Why would I
want it on or off?

Answers were Sorted based on User's Feedback



What does the "EnableViewState" property do? Why would I want it on or off?..

Answer / ramgopal reddy

It enables the viewstate on the page. It allows the page to
save the users input on a form

Is This Answer Correct ?    9 Yes 2 No

What does the "EnableViewState" property do? Why would I want it on or off?..

Answer / deepali

It allows to Store Value in viewstate and Persist the
values across postbacks

Is This Answer Correct ?    8 Yes 1 No

What does the "EnableViewState" property do? Why would I want it on or off?..

Answer / maloy.adhikari

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.
................
Maintaining the ViewState is the default setting for ASP.NET
Web Forms. If you want to NOT maintain the ViewState,
include the directive <%@ Page EnableViewState="false" %> at
the top of an .aspx page or add the attribute
EnableViewState="false" to any control.

Is This Answer Correct ?    4 Yes 1 No

What does the "EnableViewState" property do? Why would I want it on or off?..

Answer / sankar

when ever your page view state on it will take too much
responese time. that is why it is better to off the view
state if you do not require the controls to remeber its
previous state.

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

Write a code for passing ArrayList in Web API?

0 Answers  


When maintaining session through Sql server, what is the impact of Read and Write operation on Session objects? will performance degrade..

3 Answers   Allsec Technologies,


Why is string called immutable data type?

0 Answers  


What is the main difference between grid layout and flow layout?

1 Answers  


Explain what a diffgram is, and a good use for one?

2 Answers  






Hi , I am Basha. I am searching a job in dotnet.Plz tell me the order of page events in asp.net 2.0> plz send faq's related to c#.net,asp.net,sqlserver2000 etc. to my mail-id : bashask.ss@gmail.com

4 Answers   Sapient,


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

0 Answers  


What are Caching techniques in .NET

0 Answers   Microsoft,


What is difference between user control and custom control?

1 Answers   TVS,


I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al&#65533;&#65533;&#65533;&#435;&#65533;Â&#65533;&#65533;&#436;&#65533;Ã&#65533;&#65533;&#438;&#65533;Å&#65533;&#65533; al&#65533;&#65533;&#65533;&#435;&#65533;Â&#65533;&#65533;&#436;&#65533;Ã&#65533;&#65533;&#438;&#65533;Å&#65533;&#65533; Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.

0 Answers  


How does a content page differ from a master page?

0 Answers  


how to create bin folder in asp.net2.0

8 Answers  


Categories