Skip to main content

BuilderFactory.Scripts() Method

Returns control-specific scripts located on a web page.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Common.v18.2.dll

Declaration

public IHtmlContent Scripts()

Returns

Type Description
IHtmlContent

An IHtmlContent instance that stores control-specific scripts.

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

IMPORTANT

The Scripts method must be called at the end of a web page after you include a required jQuery script.

The code below demonstrates how you can use the method for ASP.NET Core Bootstrap controls.

<!DOCTYPE html>
<html>
<head>
...
</head>
<body>
  <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.2.1.min.js"
    integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous">
  </script>
  @Html.DevExpress().Scripts()
</body>
</html>
See Also