The requested page is not available for the requested platform. You are viewing the content for Default platform.

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()
Public Function Scripts As IHtmlContent

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