if you disable view state of a textbox will it maintain
data during postbacks.if yes reason

Answer Posted / raja

yes, u will get the value displayed even u disabled ViewState
I used RAJNEESH answer and concept of ans:5.Take a textbox
In load event
if (!IsPostBack)
{
txtFirst.Text = "Initial";
}
and in form
make txtFirst as enableviewstate=false,Text="Final";
if you execute it. It displays as Initial only as this is
-------
having read/write property.

but if u make readonly="true" to txtFirst then it displays
as Final
-------

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default timeout for a cookie?

560


Is it possible to create web application with both webforms and mvc?

532


How many types of session state management options available in asp.net?

536


Where would you use an ihttpmodule, and what are the limitations of any?

547


What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?

745






What is a postback ispostback and autopostback in asp net?

477


What is global.asax file used for?

557


What are the session variables?

512


What are the properties of the eventargs argument when capturing keyboard events?

537


Explain a program using razor view engine to create a simple application? : asp.net mvc

493


Where code pages are used?

690


What is the function of new view engine in asp.net? : asp.net mvc

537


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

519


What are the new login controls in asp.net 2.0?

517


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

593