Investigate the ClientIDMode property: http://msdn.microsoft.com/en-us/library/system.web.ui.control.clientidmode.aspx
If you set ClientIDMode="Static"
, your id will match in the rendered HTML, but you have the opportunity to have hyperlinks with the same ID, which will break a lot of the features of ASP.NET PostBack. Check the link above and choose the setting right for you.