Mink Machine

Server control IDs in ASP.NET 4

It’s been known for a while that the new version of ASP.NET will take care of an old problem, the id mangling of server controls. In short, your carefully selected id could be rewritten into something like “ctl00_MainContent_” before rendered to the client. Since this is one of the most annoying issues for several reasons, the change is very welcome by us markup-aware developers. All three of us.

Scott Guthrie has now written a summary of the fix in Cleaner HTML Markup with ASP.NET 4 Web Forms. Even if you don’t use the built-in controls and keep Web Forms at a safe distance, this is still something for all ASP.NET developers out there to be aware of.

Over two years ago I mentioned some of the problems with ASP.NET 1.1/2.0 in my post ASP.NET and standards compliancy. Some of those issues are unfortunately still in the framework, but I like that they are working in the right direction for a change.

Comments

No comments yet.

Post a comment

Your email address will not be published. Required fields are marked *

Featured stories

Eating my way through Basque country

"Not too bad to wash it all down with a local Txakoli, the young white wine typical of the Basque country."

Alone in Kyoto

"I tried my best to sneak across the building, but the floor revealed me each time. I suppose I would make a lousy ninja."

Good morning Montenegro

"One would almost think that all this secrecy was made on purpose to keep the hordes of tourists away. Let them all perish in the crowds of Dubrovnik while the people of Montenegro can enjoy their beautiful country on their own. Or something like that."

The lakes of Lombardy

"The town of Como, largest settlement around Lake Como, attracts a lot of people with big wallets. But I preferred to take the funicular up the mountain to the Brunate region, where you get a much better view of the lake."

Getting lost in Yazd

"Navigating on random while surrounded by staring old men, pointing their crooked fingers at the Godzilla Viking in surprise. It feels like I’m walking around in Mos Eisley."

Bunker safari

"The area contains 54 excavated bunkers along with gun emplacements, scattered around the town’s most visible landmark."