Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Your ASP.NET application displays sales data on a page. You
want to improve performance by holding the page in memory on
the server for one hour. You want to ensure that the page is
flushed from memory after one hour, and that the page is
re-created when the next request for the page is received.
What should you do?
A . Initialize a new instance of the Cache class in the
Application.Start event handler.
B . Initialize a new instance of the Timer class in the
Page.Load event handler.
C . Set the Duration attribute of the OutputCache directive
in the page.
D . In the Web.config file, set the timeout attribute of the
sessionState element.

Answer Posted / siva

C Because entire page is stored in output cache. If u stored
in session not only maintain this page, but also sotred all
values in session.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I have a unique key as foreign key?

918


How do we sort the data from a dataset?

912


Explain how does asp page work?

956


What methods are fired during the page load? Init()

912


Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

954


What is use of Master Page in ASP.NET web pages?

1003


How can you ensure a permanent cookie?

954


In Code-Behind class which kind of code (server or client) is found ?

997


How do you implement postback with a text box?

934


What are the contents of cookie?

1057


Describe the events in the life cycle of a web application.

1021


How does viewstate work?

1017


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

988


What is mta?

982


How can we communicate with each server in N-tier Architecture? and what are the methods?

2193