---
title: Validate numeric menu context
summary: Checks whether a postback carries a positive numeric menu-context value for a named menu control.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-08-17
library: SAIF.Presentation.Web.Core.Infragistics111
reference_type: package
operation_id: OP-CORE-015
trigger: Controller processing a postback
---

# Validate numeric menu context

This operation checks whether an incoming postback carries a positive numeric value for a named menu control, used by controllers to decide whether menu-driven navigation context is usable.

| Field | Value |
| --- | --- |
| **Operation ID** | OP-CORE-015 |
| **Trigger** | Controller processing a postback |
| **Inputs** | Control-value `Hashtable`, menu control name (default `SAIFMenu1`) |
| **Outputs** | `Boolean` |
| **Primary components** | `clsAppControllerBase.IsValidNumericMenuContext` |
| **Entry point** | `SAIF.Presentation.Web.Core.Infragistics111/clsAppControllerBase.vb` |

## Steps

1. Return `False` immediately when the request is not a postback or the hashtable has no entry for the menu name. ([BR-CORE-038](../business-rules.md#br-core-038-menu-context-is-only-validated-on-postbacks-and-only-when-the-menu-control-supplied-a-value))
2. Return `True` only when the menu value is numeric **and** its string form is greater than `"0"`. ([BR-CORE-039](../business-rules.md#br-core-039-a-numeric-menu-context-is-valid-only-when-it-is-numeric-and-greater-than-0))

## Process flow

The following diagram visualizes this operation's control flow.

```mermaid
flowchart TD
	Start([IsValidNumericMenuContext called]) --> D1{IsPostBack AND hashtable has menu-name entry?}
	D1 -->|No| R1([Return False])
	D1 -->|Yes| D2{"Value is numeric AND string form > '0'?"}
	D2 -->|Yes| R2([Return True])
	D2 -->|No| R1
```

## Failure and edge-case behavior
- The string comparison `> "0"` is a string, not numeric, comparison; values whose string form sorts below `"0"` lexically but are still valid positive numbers could be misclassified depending on formatting.*

## Related documentation
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)

## Sources
- `SAIF.Presentation.Web.Core.Infragistics111/clsAppControllerBase.vb`
