RenderAction is an ASP.NET MVC helper method, available starting in the 2nd version, that calls from a view and outputs the results of the action in place within the view.
Questions tagged [renderaction]
130 questions
1
vote
2 answers
Reusable components in ASP.NET MVC
I have feature on my website (some UI and associated functionality) that I want to be able to reuse on multiple pages. For the purposes of this question, let's say it's a "Comments" feature.
There is an area in my application for Components and…

kristian
- 22,731
- 8
- 50
- 78
1
vote
2 answers
Passing model from view to controller using Html.RenderAction results in model being null
I have following model:
public class Foo
{
public List Employees{ get; set; }
public List Companies{ get; set; }
public List Admins{ get; set; }
}
Then I have my controller actions:
public ActionResult…

LeonidasFett
- 3,052
- 4
- 46
- 76
1
vote
1 answer
asp mvc: show object details on a jquery dialog
Suppose I have a list of dinners. This list will present the users with, location, data and some other relevant info.
Since that there's a lot of people attending, I want a button on each dinner that opens a jquery dialog that will show the people…

dcarneiro
- 7,060
- 11
- 51
- 74
1
vote
1 answer
.net Html.RenderAction returns binary instead of HTML. Huh?
I'm not sure exactly what I'm doing wrong here.
I have an action which returns a partial view:
public class SharedController : BaseController
{
public ActionResult StudentPoll()
{
WAM.X2O.FuelUpToPlayContext db = new…

Michael
- 11
- 1
1
vote
2 answers
How to add a weather info to be evalueated only once?
In a ASP.MVC (1.0) project i managed to get weather info from a RSS feed and to show it up. The problem i have is performance:
i have put a RenderAction() Method in the Site.Master file (which works perfectly) but i 'm worried about how it will…

Savvas Sopiadis
- 8,213
- 10
- 34
- 53
1
vote
1 answer
Renderpartial or renderaction
have an action that generates active vacancies. The code is below;
public ViewResult OpenVacancies()
{
var openvacancies = db.GetActiveVacancies();
return View(openvacancies);
}
I want to use this list on…

femi
- 974
- 2
- 13
- 44
1
vote
1 answer
RenderAction or RenderPartial dynamically
I have this view that has the following code:
@model ComPost.Core.CommandsAndQueries.Contract.DataContract.DepositDetailDTO
@section scripts
{