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
0
votes
2 answers
Persistent data across internal pipelines / requests
Basically I have a webpage structure where common parts of the page (header, side bar, etc) are generated in a separate controller filled with child actions outputting partial views. I then call these actions (using RenderAction()) from the layout…

Josh
- 23
- 3
0
votes
1 answer
Nested partialview not refreshing
I have this partial view that looks as follows :
@model ComPost.Core.CommandsAndQueries.Contract.DataContract.FinalizeScreenDTO
Wijzig Product |
![]()
Bart Schelkens
0
votes
1 answer
MVC RenderAction inside dialogI am hoping someone can assist me. I have a RenderAction inside a dialog so that I can dynamically populate some dropdowns with updated data. Currently, the dialog box won't close after saving when trying to re-render the action.
Here is my partial…
![]()
jallen
0
votes
2 answers
Multiple PartialViews On A Form Yielding NullReferenceException: Object reference not set to an instance of an objectI have the following view that I've developed (using VS 2010 ASP.NET MVC4) as a dashboard of sorts that has four different partial views that it renders for management:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Manager.Master"…
![]()
CitiDeveloper
0
votes
1 answer
Which is better - Output Caching 6 Child Actions or 6 DB queries using RenderPartial?I am attempting to develop a cms system that will use tags to display similar content. For example, underneath the news section there will be articles, blogs, news and forum questions that share the same tags. There will be no more than 5 items in…
![]()
Martin Hansen Lennox
0
votes
1 answer
Exception handling with RenderAction Asp.Net MVCWe are using renderaction provided by MVC futures.
We've noticed that HttpExceptions in child action methods are not propagated to the parent action. Even though a fragment has failed, we still see
the parent request resulting in a 200, and this…
![]()
vi.
0
votes
0 answers
Access the Model in the PartialView from RenderActionIs it possible to access the model in the PartialView returned by RenderAction from the parent view?
I have a controller action that returns a view with a list of items that have geographical data. I'd like to use the lat/lon to place the items on…
![]()
Quasi_Stomach
0
votes
1 answer
RenderAction calling POST method instead of GETI have a page Index.aspx
<%@ Page Inherits="System.Web.Mvc.ViewPage" %>
which contains
<% Html.RenderAction("GetGroups", "Organisation"); %>
Now, in my Organisation controller I have two methods - GET and POST, for GetGroups. Ideally, I expect…
![]()
RKS
0
votes
2 answers
Parameter ok in RouteData but passed as null in controllerI'm a few weeks into MVC now, and each day, something new pops up which strikes me as quite odd. So, I try to find answers to the issues I'm facing. None the less, for the current issue, I can't seem to find a descent answer here on stackoverflow,…
![]()
Tim Geerts
0
votes
2 answers
ASP.NET MVC Dynamic RenderActions in jquery tabsOk, so, that title is a mouthfull...
But, I reckon you understand what I'm trying to do.
I have a page which contains the jquery tabs control, and I render the different tabs by looping through my model.
Now, the divs (that are "linked" to those…
![]()
Tim Geerts
0
votes
1 answer
asp.net MVC RenderAction coordinatorWe're looking at the ASP.NET MVC 2 beta RenderAction() method. We like it very much but it seems that we can't use async controllers with it. Does anyone have an example of a "controller" that can figure out all the actions that will be called,…
![]()
No Refunds No Returns
0
votes
2 answers
SparkViewEngine, RenderAction and Areas with ASP MVC 2 Beta?I just ran into trouble with the AreaDescriptionFilter of Spark using MVC 2 Beta.
The following line is from my Application.spark file. It results in the view engine looking in all possible locations of the view - except in the folders of the area…
![]()
backyardKiwi
0
votes
1 answer
Html.RenderAction as static methodI've recently started playing with MVC4, and i'm now on to partial views.
I currently have a controller like so:
public class BlogController : Controller
{
[ChildActionOnly]
public ActionResult MostRecent()
{
...
}
}
And…
![]()
royse41
0
votes
2 answers
ASP.NET MVC 2 beta Asynchronous RenderActionBackground:
http://www.hanselman.com/blog/HanselminutesPodcast188ASPNETMVC2BetaWithPhilHaack.aspx
Start from 27:15,RenderAction has been discussed at 28:43 that a RenderAction will not be part of Asynchronocity as an asyncronous action method…
![]()
stoto
0
votes
1 answer
More than one Http.RenderAction() in a single ViewAs we all know RenderAction() is either part of:
Asp.net MVC 1 Futures or
Asp.net MVC 2 Beta 2
and allows us to render action result inside another view or partial view.
Description
You have a view with multiple partial views displayed using…
![]()
Robert Koritnik
|