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 many types of server controls do we have?Also explain differance between them taking an example of ASP.NET?
Do cookies store passwords?
Describe a bubbled event and how it is used ?
What is datagrid asp.net?
What is machine.config and web.config ?
What is CTS, CLS and CLR ?
20 Answers CGI, Palm Technology, Reliable Technology, Satyam, Synergy, TCS,
What is the difference between custom web user control and a custom web server control?
WHAT IS OBJECT POOLING
Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?
How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?
Name the control which can be used to reserve the space on web page for storing localized data.
Difference Between ReadOnly and Constant Variable in compile time and Run Time.
3 Answers Phoenix Technologies, Quadrant,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)