I would like to know if it is possible to cache an ASP.NET UserControl on the Client.
I have an User Control that queries a DB and renders a GridView. It must be on the Client because the query results vary from user to user (by the User.Identity.Name).
The page is for an intranet.
Any help would be really appreciated!
Thanks in advance,
PS: Where are the user controls cached by default? Server, Proxy?
User controls are ALWAYS cached on the web server, not on proxy servers or in web browsers.
To address your intent though, you can render different cached results based upon the VaryBy attributes of the OutputCache directive. These include: