I\'m trying to use asp:
I want a way to spe
Things have changed in HTML5:
ASPX:
C#:
if (!IsPostBack)
{
txtBox.Attributes.Add("maxlength", txtBox.MaxLength.ToString());
}
Rendered HTML:
The metadata for Attributes
:
Summary: Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
Returns: A
System.Web.UI.AttributeCollection
of name and value pairs.