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

Answers were Sorted based on User's Feedback



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

Answer / sam

Yes. It maintain the data during postbacks.

Reason:Form controls, such as TextBox, retain their values
between posts even when view state is disabled. The values
of these controls do not need to be preserved in the
VIEWSTATE hidden form field because they are actually being
submitted to the server on each form post.

Is This Answer Correct ?    52 Yes 1 No

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

Answer / sheetal

yes

Is This Answer Correct ?    48 Yes 4 No

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

Answer / sivakumar

Yes it will preserve the value. Because the value whatever
we have in the controls are loaded appropriatly on the
controls by LoadPostBackData event.

Is This Answer Correct ?    6 Yes 1 No

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

Answer / rajneesh hajela

YES , IT WILL WORK
It maintain the data during postbacks.
IF YOU WANT THEN READONLY="TRUE";

RAJNEESH HAJELA

Is This Answer Correct ?    2 Yes 0 No

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

Answer / 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

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

Answer / alpesh

No it cannt

Is This Answer Correct ?    7 Yes 24 No

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

Answer / kamlesh

No,becouse view State work as a page lavel.it mentioned all
hidden value of page control, so if we dissable view
state of textbox that it cont.

Is This Answer Correct ?    3 Yes 26 No

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

Answer / k

No. Becoz it is a stateless connection.

Is This Answer Correct ?    1 Yes 24 No

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

Answer / rajani

no,because view state is desable in textbox

Is This Answer Correct ?    1 Yes 25 No

Post New Answer

More ASP.NET Interview Questions

How can we update records in gridview?Is there any appropriate code for it?

0 Answers  


How will you write a web service for secure socket layer? What is secure socket? Have you done any socket programming? What is single thread and multi thread? What are the differences between .NET 1.1 and .NET 2.2? What is the command to connect to a StoredProcedure? How many types of Adapters are available in ADO.NET? Why DataAdapters are important? What is DataSet? It's important to compile the ASP.NET application before using it? What protocol you use to stream the audio and Video data? What are the different kind of network protocols? Write how will you connect to a database using DataSet? Why we use AJAX? What AJAX can do which JavaScript can't do? In a page using Windows Media API, if we press a button and in succession quickly press another button, what do you think will happen? Will the application wait for the first button response and then execute the second one or directly second button command will execute. What is the architecture of your application? What is connection pooling in SQL? Tell some functions of Windows Media API? How you will detect, whether the ActiveX is installed in the system before accessing it? What are validators are available in ASP.NET? What are the basic concepts of OOPS? What is abstraction?

0 Answers   Tesco,


What are the steps to follow to host a web application on a web server?

0 Answers   MCN Solutions,


How do you pass session values from one page to another ?

4 Answers   Digital GlobalSoft,


In a Repeater control how one can provide an alternating color scheme ?

0 Answers   Siebel,


Where is session cookies stored?

0 Answers  


Explain how cookies work.

0 Answers  


Difference between server.Execute and response.redirect ?

5 Answers   Accenture, Keane India Ltd,


What would be the salary of an Asp.net developer with 1 and half year experience in indian rupees..??

5 Answers  


can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it

0 Answers  


What are the different types of Session state management options available with ASP.NET?

1 Answers  


what is silver light when will we use silver light,

0 Answers  


Categories