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

In which event of page cycle is the viewstate available?

0 Answers  


what is difference between User Control,Custom Contro1,Web server control and template controls

1 Answers  


What data types do the RangeValidator control support?

2 Answers  


Explain authorization levels in .net ?

0 Answers  


What is the advantage of mvc over asp.net? : Asp.Net MVC

0 Answers  






i have a register form & in that form i have a 2 textboxes for entering name&age.my doubt is that how can i provide error message like "invalid entry" when user enter a invalid name/age(eg:user enter name as #%%%##daff,and age as 1000.)in that textboxes.I want code.

3 Answers  


Can two different programming languages be mixed in a single ASMX file?

1 Answers   IBM, Patni, Wipro,


how can u create the forms authentication?and what is the difference between forms authentication and windows authentication?

2 Answers   IBM,


What is the relationship(in oops) between codebehind and inline code(.aspx to .aspx.cs)??? explain

4 Answers   Mind Tree,


Describe in brief .net framework and its components.

0 Answers  


Explain the different parts that constitute ASP.NET application?

0 Answers   B-Ways TecnoSoft,


How to publish website

1 Answers   Syntel,


Categories