System.Web.UI.HtmlTextWriter.IsValidFormAttribute Method

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

Syntax

public virtual bool IsValidFormAttribute (string attribute)

Parameters

attribute
A string that contains the name of the attribute to check.

Returns

Always true.

Remarks

The System.Web.UI.HtmlTextWriter class implementation of the HtmlTextWriter.IsValidFormAttribute(string) method returns true for all attributes. Override the HtmlTextWriter.IsValidFormAttribute(string) to limit the attributes that can be rendered in the opening tag of a <form> element.

Requirements

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