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

Memories of Skye

"The countryside is charming and some places even have coffee."

The fairytale castles of Sintra

"The Portuguese town of Sintra is famous for many beautiful castles. Palácio Nacional da Pena is arguably the most stunning of the lot. "

Historic locations in Gothenburg

"Hundreds of houses were quickly build, but unfortunately all of it was burned to the ground in 1611 by Danish forces."

On the Trans-Siberian

"Since the toilets were locked during the seven hour stop, we had to bribe the provodnitsas to use the facilities. Then came the Mongols."

New Years Eve in Sydney

"Opera House is seen in front of the massive fireworks in the harbor area, celebrating the 75th anniversary of the Harbour Bridge."

Roaming the cobblestones of Istanbul

"Inside the church there are still traces of rune inscriptions made during the Viking age by Varangians, an elite guard made up of Scandinavian immigrant warriors."