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 default timeout for a cookie?
Is it possible to create web application with both webforms and mvc?
How many types of session state management options available in asp.net?
Where would you use an ihttpmodule, and what are the limitations of any?
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?
What is a postback ispostback and autopostback in asp net?
What is global.asax file used for?
What are the session variables?
What are the properties of the eventargs argument when capturing keyboard events?
Explain a program using razor view engine to create a simple application? : asp.net mvc
Where code pages are used?
What is the function of new view engine in asp.net? : asp.net mvc
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
What are the new login controls in asp.net 2.0?
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?