---
title: _BolMenuItemPartial
summary: API reference for the _BolMenuItemPartial partial view.
status: draft
owner: SAIF IT Core Services
last_reviewed: 2026-10-12
library: BolMiddleware
reference_type: package
---

# _BolMenuItemPartial

Partial view that renders one menu entry as a form post button. A click posts `targetApp` and `targetPage` to the `MenuItemClick` handler of `BolMenuModel`.

## Purpose
- Render a menu entry, mark it active from the `BasicAppMap` page ids, and post the click to the menu model, which builds the redirect.

## Context
- Namespace: `BolMiddleware.Pages.Shared`
- Assembly/package: `BolMiddleware`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Partial view | `Pages/Shared/_BolMenuItemPartial.cshtml` | Model `BolNavItemViewModel`; injects `IOptions<BasicAppMap>`; emits a button with `asp-page-handler="MenuItemClick"`, `targetApp`, `targetPage`, and `data-saif-page-name`. |

## Behavioral notes
- When the request path is empty, the `HomePage` entry of `PageIds` is the fallback for marking the active item.

## Constraints and usage notes
- The post skips anti-forgery validation because `BolMenuModel` disables it.

## Sources
- src/BolMiddleware/Pages/Shared/_BolMenuItemPartial.cshtml
