This happens a lot when porting over CSS-styled HTML markup to ASP.NET, especially when using IDs as CSS selectors (which, as you probably already know, is the "proper" way of doing it). It has to do with how ASP.NET renames server control IDs that are inside other server controls... Check...