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

How can we set the class to be inherited, but prevent the method from being over-ridden?

484


How many types of constructor are there in c#?

484


What are the steps to create an assembly and add it to the gac?

461


What is a class level variable in c#?

498


What is the use of generics in c#?

468






Is there any sample c# code for simple threading?

564


Which attribute is used in order that the method can be used as webservice?

515


How do you use nullable?

504


Whats an assembly? Describe the importance of assembly?

499


What does || mean in programming?

501


What is difference between a type and class?

602


What are the different types of comments in c#?

494


write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5

1874


What is difference between private, protected, and public in C#?

557


How do you declare an interface in c#?

488