CS4 webControl25

CS4 webControl25

Loader25

Loader25 is a lightweight ASP.NET helper control used to render loading indicators (preloaders) in Razor views. It provides multiple predefined visual styles that can be used to indicate background processing, page loading, or AJAX activity.

Key Features

  • Multiple built-in loader styles
  • Simple API with enum-based style selection
  • Returns ready-to-render HTML
  • Supports embedded resource-based loaders

Public Enum

Styles

  • Style1
  • Style2
  • Style3
  • Style4

Sample Code

Default using Loader

@Loader25.GetHtml(Loader25.Styles.Style4)

Basic Loader

@Loader25.GetHtml(Loader25.Styles.Style1)

Dot Spinner Loader

@Loader25.GetHtml(Loader25.Styles.Style3)

Resource-Based Loader

@Loader25.GetHtml(Loader25.Styles.Style2)

Default using Loader

@Loader25.GetHtml(Loader25.Styles.Style4)