---
title: "Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction in mvc"  
description: "Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction in mvc"  
author: "Anonymous User"  
published: 2014-11-17  
updated: 2014-11-18  
canonical: https://www.mindstick.com/forum/12616/html-partial-vs-html-renderpartial-html-action-vs-html-renderaction-in-mvc  
category: "asp.net mvc"  
tags: ["c#", "mvc"]  
reading_time: 1 minute  

---

# Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction in mvc

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](https://www.mindstick.com/forum/2318/what-is-the-difference-between-html-partial-and-html-renderpartial-and-html-action-and-html-renderaction)
- Html.Action and Html.RenderAction

## Replies

### Reply by Manoj Bhatt

Html.Partial returns a String, Html.RenderPartial calls Write internally, and returns void.

**The basic usage is:**

```
// Razor syntax@Html.Partial("ViewName")@{ Html.RenderPartial("ViewName");  }// WebView syntax<%: 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/12616/html-partial-vs-html-renderpartial-html-action-vs-html-renderaction-in-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
