Explain < @OutputCache% > and the usage of VaryByParam, VaryByHeader ?
Answer / arunendra shukla
OutputCache is used to control the caching policies of an ASP.NET page or user control. To cache a page @OutputCache directive should be defined as follows < %@ OutputCache Duration="100" VaryByParam="none" % >
VaryByParam: A semicolon-separated list of strings used to vary the output cache. By default, these strings correspond to a query string value sent with GET method attributes, or a parameter sent using the POST method. When this attribute is set to multiple parameters, the output cache contains a different version of the requested document for each specified parameter. Possible values include none, *, and any valid query string or POST parameter name.
VaryByHeader: A semicolon-separated list of HTTP headers used to vary the output cache. When this attribute is set to multiple headers, the output cache contains a different version of the requested document for each specified header.
Is This Answer Correct ? | 0 Yes | 0 No |
What are the 3 types of web?
What are the different properties of server control that exists?
how to add cliet side event to server side? and how to register client script to sever side? wt difference these two
Can you nest updatepanel within each other?
what is client back feauture ?
What is the difference between application object and session object?
What is cross page posting? How is it done?
What is HTTP MODULE & HTTP HANDLERS in ASP.NET? How a developer can utilize in the application? Please provide example.
Define web services in asp.net.
Explain the difference between Repeater and Data list control in ASP.NET?
To bind columns manually which tags do you need to add within the asp:datagrid ?
What is full trust in asp.net?