what is the lifespan of the items stored in viewstate ?

Answer Posted / suresh

ViewState is newly introduced in ASP.Net to hold the status of the current page values when submitted to the server. Life of ViewState is till the current page postbacks.



Note : You may save a lot of coding by maintaining the ViewState of the objects in your Web Form

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

508


Why do we need reflection in c#?

480


What is a method signature c#?

515


Why do we need interface in c#?

496


What is parameterized constructor?

504






Explain code compilation in c#.

520


What is exe file in c#?

482


What is int parse in c#?

484


Do void methods have parameters?

486


What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?

506


Explain the 3 types of properties in c# with an example?

542


How can you sort strings in array that are passed to method as arguments?

523


What is CLR and its application.?

560


Why data types are important in c#?

477


Explain more on CLR

745