I can’t understand why this is at all useful. I’ve got a master page with a content holder called Main, and I’ve got a content page with a matching content tag. However, I’ve noticed that when the pages get put together, the ids of some of my elements are changed, or should I say perverted, like so:
<input value="fizz-buzz" name="ctl00$Main$options" type="radio" id="Main_foobar"/>
This is wreaking havok on my css. Please help.
This is to ensure that multiple IDs from different sources will always have a unique name.
In ASP.NET 4.0, you can set the ClientIDMode to static and controls won’t be renamed.