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
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 |
Define secured sockets layer.
what is pagination in asp.net ?
What are the features of asp.net mvc?
Where is cookie used in asp.net?
What is custom control. What is the difference between custom control and user control?
Using Statement usage in C#
What are sessions in asp net?
What is the use of sessionstate tag in the web.config file?
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'
What are the HTML server controls in ASP.NET?
Define an assembly?
can we transfer data from one page to another page using viewstate if so how?if not y?