Geeks With Blogs

Scott Kuhl Warning: I may have no idea what I am talking about! September 2008 Entries
ASP.NET Cache and HtmlAnchor HRef Bug
I just ran into a strange problem where all the links on a list are getting dropped. The anchor tag was still there but the href was gone. I tracked it down to a bug in the cache. Here is the scenario. I am building a fairly complex bullet list in code that will change very infrequently so I cache the user control for 24 hours. The problem is anything being built with an HtmlAnchor control is losing the Href value, but not anything else. This breaks: var anchor = new HtmlAnchor { HRef = "", ......

Posted On Thursday, September 4, 2008 2:28 PM

Copyright © Scott Kuhl | Powered by: