Scott Kuhl

Warning: I may have no idea what I am talking about!
posts - 765, comments - 862, trackbacks - 350

My Links

News


Help CMTA!

Twitter







Tag Cloud

Archives

Post Categories

Image Galleries

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 = "http://www.juggle.com/",...

Posted On Thursday, September 04, 2008 2:28 PM | Feedback (2) |

Powered by: