Ad

What Are Asp .net Validators Rendered Into In HTML?

- 1 answer

Are all asp net validators rendered as < span> tags?

This is important as spans are being used in the styling and a strict css heiracrchy is in place and I don't want to add redundant < span> tags around what will be rendered at runtime.

Ad

Answer

When you use ASP.NET more than just the validators are wrapped with spans. A RadioButtonList also has a span wrapped around the items. Very annoying sometimes.

Ad
source: stackoverflow.com
Ad