<p>I've written a control that inherits from the <code>System.Web.UI.WebControls.DropDownList</code> and so I don't have any code in front for this control, but I still want to set the OutputCache directive.  I there any way to set this in the C# code, say with an attribute or something like that?  </p>

<p>I'm particularly hoping to be able to replicate the <code>VaryByParam</code> property</p>

```
```
Response.Cache.SetExpires(DateTime.Now.AddSeconds(60));
Response.Cache.SetCacheability(HttpCacheability.Server);
Response.Cache.SetValidUntilExpires(true);
```
```