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.

Answers were Sorted based on User's Feedback



Your ASP.NET application displays sales data on a page. You want to improve performance by holding ..

Answer / js_m

C

Is This Answer Correct ?    4 Yes 0 No

Your ASP.NET application displays sales data on a page. You want to improve performance by holding ..

Answer / sadanandam

c

Is This Answer Correct ?    3 Yes 0 No

Your ASP.NET application displays sales data on a page. You want to improve performance by holding ..

Answer / 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

Your ASP.NET application displays sales data on a page. You want to improve performance by holding ..

Answer / pooja shukla

D

Is This Answer Correct ?    0 Yes 3 No

Your ASP.NET application displays sales data on a page. You want to improve performance by holding ..

Answer / dilip kumar

d

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More ASP.NET Interview Questions

Define secured sockets layer.

0 Answers  


what is pagination in asp.net ?

1 Answers   Netsweeper,


What are the features of asp.net mvc?

0 Answers  


Where is cookie used in asp.net?

0 Answers  


What is custom control. What is the difference between custom control and user control?

2 Answers   Microsoft,






Using Statement usage in C#

2 Answers  


What are sessions in asp net?

0 Answers  


What is the use of sessionstate tag in the web.config file?

2 Answers  


I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'

2 Answers  


What are the HTML server controls in ASP.NET?

0 Answers   MindCracker,


Define an assembly?

9 Answers   Siebel,


can we transfer data from one page to another page using viewstate if so how?if not y?

1 Answers   Patni,


Categories