Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Jan 15, 2011 @ 19:40
    Darren Ferguson
    0

    User control Macro Date Caching in 4.6.1

    All:

    When I have a public date property in a user control Macro: e.g.

    public DateTime TheTime { get; set; }

    Which is set in the Page_Load event:

    protected void Page_Load(object sender, EventArgs e)
    {

                TheTime = DateTime.Now;

    }

    Then in my .ascx I output the value like:

    <%= TheTime %>

    The value is displayed incorrectly on the event of a cache hit (it is rendered as):

    01/01/0001 00:00:00

    Also .ascx logic now appears to be cached which wasn't the case in 4.5.x. Has the strategy changed?

    I guess it is in relation to this:

    http://umbraco.codeplex.com/workitem/29875

     

     

Please Sign in or register to post replies

Write your reply to:

Draft