How can you cache different version of same page using ASP.NET cache object ?
.NET INTERVIEW QUESTIONS - How can you cache different version of same page using ASP.NET cache object ?
Output cache functionality is achieved by using “OutputCache” attribute on ASP.NET page header.
The syntax is as follows:-
<%@ OutputCache Duration="20" Location="Server"
* VaryByParam :- Caches different version depending on input parameters send through HTTP POST/GET.
* VaryByHeader:- Caches different version depending on the contents of the page header.
* VaryByCustom:-Lets you customize the way the cache handles page variations by declaring the attribute and overriding the GetVaryByCustomString handler.
* VaryByControl:-Caches different versions of a user control based on the value of properties of ASP objects in the control.
2009-05-19, 5067👍, 0💬
What is the difference between "printf(...)" and "sprintf(...)"? sprintf(...) writes data to the cha...
What Is the Difference between Formal Parameters and Actual Parameters? - Oracle DBA FAQ - Creating ...
What is page thrashing? Some operating systems (such as UNIX or Windows in enhanced mode) use virtua...
How To Define a Sub Function? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and Functions A...
How will you freeze the requirement in this case? What will be your requirement satisfaction criteri...