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
What is the use of asp.net web api?
What are the versions of garbage collection?
What is the concept of postback in asp.net?
How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC
In ViewState How much lifespan items stored?
How do we implement bundling in MVC?
Why session is used in asp.net?
What is ispostback method in asp.net?
Explain the concept of event bubbling in ASP.NET?
What is the significance of attaching a profile while creating a user?
How do session tokens work?
How can you handle errors in Web API?
Can master pages be nested?
Can you nest updatepanel within each other?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?