CS4 webControl25

CS4 webControl25

PageHeader25

PageHeader25 is a reusable ASP.NET helper control used to render a page header section with a title and breadcrumb navigation. It is typically used at the top of pages to display the current form name and navigation path.

Key Features

  • Displays page title (form name)
  • Automatically builds breadcrumb navigation
  • Supports clickable and non-clickable breadcrumb items
  • Marks the current page as active
  • Uses embedded HTML template

PageHeader25.Properties

FieldTypeDescription
FormNamestringTitle text displayed in the page header
PagesListBreadcrumb navigation items

PageHeader25.Pages

Represents a single breadcrumb item.

FieldTypeDescription
NamestringDisplay text for the breadcrumb item
UrlstringOptional link URL (empty for current page)

Rendering Logic

  • Iterates through the Pages list to build breadcrumb items
  • The last page is automatically marked as active
  • If a page has a URL, it is rendered as a clickable link
  • If a page URL is empty, plain text is rendered

Usage Example

 
PageHeader25.Pages path = new PageHeader25.Pages
 {
     Name = "Home",
     Url = "/Home/Dashboard"
 };
 PageHeader25.Pages path1 = new PageHeader25.Pages
 {
     Name = "Manage User",
 };
 List paths = new List();
 paths.Add(path);
 paths.Add(path1);
 PageHeader25.Properties Properties = new PageHeader25.Properties
 {
     Pages = paths,
     FormName = "Manage User"
 };
 @PageHeader25.GetHtml(Properties)