The documentation for this control is not clear and could lead to security problems
It states "This control can be used to display user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements."
It's not completely clear what it's talking about - but the "Label" control does NOT "html encode" the contents of the label property. ASP.net validation ONLY prevents potentially input, not display. Make sure you always encode the contents of this control.
Unfortunately, nothing in the documentation clearly states that the contents of this control will not be encoded. It states that "The text property can contain HTML" but it never states whether the HTML is encoded or passed through
<asp:Label ID="Test" runat="server" Text="<script>alert('If this is user-created content, your site\'s been hacked')</script>"/>