Tech Off Post

Single Post Permalink

View Thread: Problem with HTMLAnchor and ASP.Net Cache
  • User profile image
    stevo_

    I think its because the HRef is stored within the attribute collection that is inherited from HtmlControl.

    InnerText literally just adds a new LiteralControl inside the HRef controls and also adds the content to the viewstate.

    Not entirely sure why its doing this, but if its a problem with the AttributeCollection, you can expect it to lose the Title attribute as well, since that is also stored in the base classes AttributeCollection.