Welcome! and rules
Joel on Software
id attribute vs. name attribute
I guess this is more generic than just .NET, but I don't understand the following behavior.
A "name" is a not-guaranteed-unique identifier for form postbacks. An "id" is a unique identifier inside the DOM for the thing. They don't serve the same (philosophical) purpose. That some old browser decided to let you access things by name in non-standard ways isn't really the point.
Brad Wilson (dotnetguy.techieswithcats.com)
My understanding is that ASP.NET controls will automatically be assigned a unique client-side ID in the ClientId property that you can use in scripts if you leave the ID property blank.
Basically if you want your code to work but you still want a valid XHTML page you have to put in both attributes.
Thomas David Baker
Fog Creek Home