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 / js_m
C
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Hi this is the coding for adding data in to an xml table
i want the coding for update and delete
Try
Dim emp_xml_doc As New XmlDocument
If
System.IO.File.Exists(Server.MapPath("emp.xml")) Then
emp_xml_doc.Load(Server.MapPath("emp.xml"))
Dim myrow_element As XmlElement
myrow_element =
emp_xml_doc.CreateElement("EmpDetails")
Dim str As String
str = "
What are the advantages of using Master Pages?
Which protocol is used to call web service?
What is role-based security in asp.net?
Is asp net front end or backend?
Who creates jsessionid?
What is the benefit of WebAPI over WCF?
Why is global asax is used for?
What is data cache in sql server?
Is session server side or client side?
What are the advantages and disadvantages of Using Cookies?
What are main return types supported in Web API?
What are the various session state management options provided by asp.net?
How to use ipostback?
What is asp.net introduction?