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

Why is global asax is used for?

516


Explain how can you debug your .net application?

532


How does ASP.NET framework maps client side events to Server side events.?

548


What is AutoPostback?

596


Explain the features that make asp.net more used framework? : asp.net mvc

479






Explain managed code an un-managed code.

595


How does the service stream content?

585


How many ways are there to maintain a state in .net? What is view state?

589


What is the file through which you can customize your asp.net application?

547


What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?

1505


What is the difference between a multi-layer and multi-tier applications?

573


What is the difference between application state and caching?

545


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

1944


How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?

1570


Explain server side state management system.

550