Skip to main content

Razor Syntax

ASP.NET Core applications use Razor syntax to embed server-side C# code in HTML files. You can specify Razor code that generates custom HTML markup. DevExpress ASP.NET Core controls generate DevExtreme JavaScript components. The following code snippet demonstrates Razor code in the Razor.cshtml tab and generated HTML markup in the index.html tab:

@(Html.DevExtreme().Button()
    .ID("submitButton")
    .Text("Submit")
    .Icon("check")
    .Type(ButtonType.Success)
)

Refer to the following topics for more information: