Inline HtmlHelpers in asp.net MVC 5 - Tutorial

For Consultation : +91 9887575540

Stay Connected :

The @helper syntax within Razor enables you to easily create re-usable helper methods that can encapsulate output functionality within your view templates. They enable better code reuse, and can also facilitate more readable code.

Example1 :

step1. Create Controller and write an action , here I created a “helpers” controller and “InlineHelpers” Action.


Step1. Add an action “InlineHelpersExample2” in above controller.

Step2. Add View and write following code.

Select your currency