How will u decide when to use caching and when to use
viewstate?

Answer Posted / satish v itagi

ViewState has no automatic expiration, it is reloaded with
every page created and served by server. Caching leaves
data away from page life, its scope can be page, session or
application. Caching can have its own custom life span
defined. Conventionally, caching is used for large data.
Bigger viewstate data, slower will be page loading. Bigger
caching, faster will be page loading!

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why asp.net is better than php?

486


Write some code using interfaces, virtual methods, and an abstract class`

1577


Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)

1611


What is Web Server Control Templates.?

583


What are the new data controls in asp.net 2.0?

522






How does windows service lifecycle differ from a .standard. Exe?

508


Explain the difference between the web config and machine config.

623


Is it right that ASP.NET Web API has replaced WCF?

505


Explain what is event bubbling?

569


What is custom events?

563


Who creates jsessionid?

560


What are the differences between the response.write() and response.output.write()?

529


How do you implement postback with a text box?

558


What is difference between asp.net and asp.net mvc? : Asp.Net MVC

483


Explain the significance of routing? : asp.net mvc

534