Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
is working on a reply...