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

Wazzup in Vaduz

"Vaduz Castle is overlooking the town from a hill, a short walk from the center. It’s really a postcard view with the alps in the background, which I’m sure the prince enjoys as he sips his morning coffee while towering above his loyal subjects."

The urban maze of Tangier

"There are exciting things waiting around every corner and my bucket list is long, but the Medina has a mindset of its own regarding time and space."

Having champagne in Champagne

"We roamed the damp and chilly tunnels and stumbled upon a large barrel delivered by Napoleon himself."

Aliens in Nevada and New Mexico

"We turned around and went down another dirt road, past countless Joshua trees until our car was covered in dirt and we finally arrived at the Front Gate of Area 51."

I still love you, New York

"Now I’m back and our roles are somewhat reversed. Like River Song and the Doctor, we meet again under different circumstances."

Chilling in Chile

"My weary feet has reached Valparaiso. After almost a month of traveling across the South American continent I realize that this is as far south as I will come, due to weather conditions."