1.what is the use of view state.
Ans. : Viewstate is used to maintain state of object (values of control, variable etc...)..
2.in which condition view state is using.
Ans.: Mainly, Viewstate is used when want to maintain state / values of the control / object / variable across postbacks (e.g. page submission / page refresh due to some control event).
3.what is the difference between cache and session.
Ans : There are many difference but main difference is usage, Cache is used Application wide while Session is used when you want to maintain session (user specific) level data.
4.in which condition cache is used.
Ans: When you have repetitive data across the application like Static Images or some static data. Cache lifetime is first time hitting that object / application start and it will end when application ends / on predefined cache expiration time.
5.in which condition session is used.
Ans: When you want to maintain user specific details (like user id and name etc...). Session lifetime is opening of site in user browser and It will ends when user close the browser / site.Saisindura, if this helps please login to Mark As Answer. | Alert Moderator