---
title: "How to use  HTML helpers in MVC?"  
description: "How to use  HTML helpers in MVC?"  
author: "Anupam Mishra"  
published: 2016-02-03  
updated: 2016-02-03  
canonical: https://www.mindstick.com/forum/33951/how-to-use-html-helpers-in-mvc  
category: "asp.net"  
tags: ["c#", "asp.net", "asp.net mvc"]  
reading_time: 1 minute  

---

# How to use  HTML helpers in MVC?

Hi Everyone,I am working on [ASP.NET](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) MVC4 [framework](https://www.mindstick.com/forum/34615/software-framework-vs-library) and i want to use [HTML helpers](https://www.mindstick.com/blog/589/html-helpers-in-mvc) for [render](https://www.mindstick.com/interview/2205/why-we-need-a-separate-mobile-project-template-while-we-can-render-our-web-application-in-mobile-what-s-new-in-mvc-4-mobile-template) HTML [controls](https://www.mindstick.com/articles/66/how-to-create-controls-at-run-time-in-csharp-dot-net) in the view.Please can [anyone give me](https://answers.mindstick.com/qa/41194/can-anyone-give-me-some-high-and-low-points-of-each-of-the-four-first-presidential-administrations) a solution.Thank you.

## Replies

### Reply by Anupam Mishra

We use use [HTML](https://www.mindstick.com/articles/1530/design-a-simple-stylish-calculator-using-html-css-and-javascript) helpers for render HTML controls in the view. In this example we will use “HTML.TextBoxFor” is strongly typed while “HTML.TextBox” isn’t. Below is a simple HTML code which just creates a simple textbox with “StudentCode” as name.

```
Html.TextBox("StudentName")
```

Below is “**Html.TextBoxFor”** code which creates HTML textbox using the property name ‘**StudentCode**” from object “**m**”.\

```
Html.TextBoxFor(m => m.StudentName)
```

In the same way we have for other HTML controls like for **checkbox** we have “**Html.CheckBox**” and “**Html.CheckBoxFor**”.


---

Original Source: https://www.mindstick.com/forum/33951/how-to-use-html-helpers-in-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
