TemplateControl.LoadControl(Type, Object[]) -> PartialCaching?

Discussion in 'ASP .Net' started by DC, Aug 28, 2006.

  1. DC

    DC Guest

    Hi,

    thankfully this new method exists in the 2.0 Framework, in 1.1 it was
    more complicated to dynamically load a WebControl with PartialCaching.
    I did not try it, but I take it for granted that this method will use
    the PartialCaching attributes defined in the WebControl.

    Is there an easy way to alter the caching attributes (e.g.
    PartialCachingAttribute.Duration)? We have previously done this by
    instanciating PartialCachingControl through reflection (passing the
    attributes), and I was hoping this new LoadControl method would also
    offer an easy way for that.

    Thanks for any hints,

    Regards
    DC
    DC, Aug 28, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DC
    Replies:
    1
    Views:
    2,318
  2. MattB
    Replies:
    0
    Views:
    1,625
    MattB
    Feb 2, 2006
  3. Laurahn
    Replies:
    1
    Views:
    823
    Steven Cheng[MSFT]
    Jun 11, 2007
  4. Ron Vecchi

    TemplateControl??

    Ron Vecchi, Apr 14, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    200
  5. Larry Neylon

    Use a [WebMethod] in a TemplateControl

    Larry Neylon, Sep 22, 2009, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    770
    Larry Neylon
    Sep 22, 2009
Loading...

Share This Page