Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0103: The name 'ViewBag' does not exist in the current context

Source Error:


Line 1:  
Line 2:  @{
Line 3:      ViewBag.Title = "chooseposdevicesforsmallbusinesses";
Line 4:      Layout = "~/Views/Shared/_MainLayout.cshtml";
Line 5:  }

Source File: d:\LiveSites\MerePos\Views\blog\2022\chooseposdevicesforsmallbusinesses.cshtml    Line: 3






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3770.0