Back to Devexpress

ASPxButton.Native Property

aspnet-devexpress-dot-web-dot-aspxbutton-8c561496.md

latest2.3 KB
Original Source

ASPxButton.Native Property

Gets or sets a value specifying whether the ASPxButton control is rendered as a native input type=button element or input type=submit element.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool Native { get; set; }
vb
<DefaultValue(False)>
Public Property Native As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if a button control is rendered as a standard HTML element; otherwise, false.

|

Remarks

By default, the Native property is set to false, and the ASPxButton control is rendered so that it fully supports customization of its appearance (by applying DevExpress Themes or/and changing different properties).

If the Native property is set to true, the ASPxButton control is rendered using a standard HTML input element of the button or submit type (upon the ASPxButton.UseSubmitBehavior property value). In this case, the button appearance depends upon how a client browser interprets and displays the corresponding HTML element.

Note that native rendering results in less HTML code, improving the application’s overall performance.

See Also

Native Mode

Online Demo: Common Features - Native Mode

ASPxButton Class

ASPxButton Members

DevExpress.Web Namespace