System.Web.UI.XhtmlTextWriter.IsValidFormAttribute Method

Checks an XHTML attribute to ensure that it can be rendered in the opening tag of a <form> element.

Syntax

public override bool IsValidFormAttribute (string attributeName)

Parameters

attributeName
The attribute name to check.

Returns

true if the attribute can be applied to a <form> element; otherwise, false.

Remarks

This method is useful to conditionally render an attribute depending on whether it is supported by the XHTML document type of the requesting device.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0