---
title: "What is the difference between Html.Partial and Html.RenderPartial and Html.Action and Html.RenderAction?"  
description: "What is the difference between Html.Partial and Html.RenderPartial and Html.Action and Html.RenderAction?"  
author: "Mark Devid"  
published: 2014-10-06  
updated: 2014-10-07  
canonical: https://www.mindstick.com/forum/2318/what-is-the-difference-between-html-partial-and-html-renderpartial-and-html-action-and-html-renderaction  
category: "asp.net mvc"  
tags: ["asp.net", "asp.net mvc"]  
reading_time: 1 minute  

---

# What is the difference between Html.Partial and Html.RenderPartial and Html.Action and Html.RenderAction?

In [ASP.NET MVC](https://www.mindstick.com/forum/155798/what-is-caching-in-asp-dot-net-mvc), what is the [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between:

· Html.Partial and Html.RenderPartial

· Html.Action and Html.RenderAction

## Replies

### Reply by Anonymous User

Html.Partial returns a String, Html.RenderPartial calls write internally, and returns void.

The basic usage is.

```
@Html.Partial("ViewName")@{ Html.RenderPartial("ViewName");  } @{    Html.Partial("ViewName");    Html.RenderPartial("ViewName");}
```

In the snippet above, both calls will yield the same result.

While one can store the output of Html.Partial in a variable or return it from a method, one cannot do this with Html.RenderPartial. The result will be written to the Response stream during execution/evaluation.

This also applies to Html.Action and Html.RenderAction.


---

Original Source: https://www.mindstick.com/forum/2318/what-is-the-difference-between-html-partial-and-html-renderpartial-and-html-action-and-html-renderaction

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
