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
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 |
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 |
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 |
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 |
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 |
How can we update records in gridview?Is there any appropriate code for it?
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?
What are the steps to follow to host a web application on a web server?
How do you pass session values from one page to another ?
In a Repeater control how one can provide an alternating color scheme ?
Where is session cookies stored?
Explain how cookies work.
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..??
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it
What are the different types of Session state management options available with ASP.NET?
what is silver light when will we use silver light,