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
2
votes
1 answer
How to call controller action with a routeValue parameter in ASP.NET MVC
I have existing code with below @html.RenderAction() method:
Html.RenderAction("Widget", "Widget", new
{
wTitle = "World map dashboard",
wTitleSpan = "",
wTitleDisplay = "",
height = "300px;",
wAction = "GetWorldMapMethod",
…

Brijraj
- 177
- 2
- 3
- 13
2
votes
2 answers
MVC 3 Rendering 2-Level Menu as Partial View
I would like to implement a 2-level parent/child menu in my MVC 3 site such as
Company
- Background
- Contact
I have implemented a single, parent level menu as a PartialView like so ...

Click Ahead
- 2,782
- 6
- 35
- 60
2
votes
0 answers
ASP.NET MVC RenderAction in Angular 6 template
I am trying to render PartialViewResult inside Angular 6 template (.html) which is necessary to use licenses in our current system. As that of course cannot be done I was wondering if there is any other way?
There were solutions like
@Component({
…

BlazK
- 43
- 7
2
votes
2 answers
How can I use this stack trace to tell what is causing my controller's action to break?
In my ASP.NET MVC app, I have a view that's calling Html.Action("MyAction", this.Model) - I have a similar scenario in a different controller and it works fine, but in this case, it breaks. I set a breakpoint on the first line of MyAction, but it's…

Samo
- 8,202
- 13
- 58
- 95
2
votes
5 answers
MVC2 - How put common LOGIC control (Like Search/Find) on each page?
I'm having trouble figuring out how to do the following:
On every page (or every page I so desire), I'd like to put a common control widget (e.g. think - Search functionality that contains a textbox+button). What's the best way to do this, and who…

Ray
- 21
- 1
2
votes
4 answers
ASP.NET mvc RenderAction Login And Register Views
I am working on NopCommerce v3.80. By Default the login and register views are different. I needed to merge them without changing much of the code, so I called @{ RenderAction("Register"); } inside Login.cshtml.
I also removed the layout (Layout =…

Vishal_Kotecha
- 481
- 5
- 19
2
votes
1 answer
The call is ambiguous between the following method or properties in ASP.NET MVC RenderAction
The call was working fine until I installed ASP.NET MVC 1.0 RTM.
Error: CS0121: The call is ambiguous between the following methods or properties
code snippet
<%Html.RenderAction("ProductItemList", "Product"); %>
Action Method
public ActionResult…

Jack
- 104
- 1
- 4
2
votes
0 answers
Get controller name of outer view that called Html.RenderAction?
Let's say I have these components:
ControllerA (ViewA)
ControllerB (ViewB)
ControllerX (ViewX)
ViewA and ViewB embed a Html.RenderAction('ControllerX') in them.
I understand that from within ViewX, ViewContext.RouteData.Values["Controller"] will…

dispake
- 3,259
- 2
- 19
- 22
2
votes
2 answers
How do I get MVC to find my controller path?
I am trying to call an action for a partial view in my _Layout view. If I place the action in the home controller, it works, but if I create a new controller StatusController, place the same child action method in it and call it from the _Layout…

antman1p
- 514
- 2
- 11
- 25
2
votes
2 answers
Html.RenderAction from another controller with passed parameter
I'm having 2 models: Player and PlayerAchievement
public class Player
{
[Required]
public String clubName { get; set; }
[Required]
public String id { get; set; }
[Required]
public int number { get; set; }
[Required]
…

Brian Pham
- 551
- 9
- 23
2
votes
2 answers
Html.ActionLink in Partial View
I am using the following code in my master page:
<% Html.RenderAction("RecentArticles","Article"); %>
where the RecentArticles Action (in ArticleController) is :
[ChildActionOnly]
public ActionResult RecentArticles()
{
var viewData…

vobs
- 133
- 1
- 5
- 16
2
votes
1 answer
Asp.Net Mvc 2 - RenderAction List with a create
First, I use Asp.Net MVC 2 RC 2.
What I want to do is to list a comment view and below this view being able to add comment (with validations). For example, something like when you add comment in stackoverflow. Except that my page should work with or…

Melursus
- 10,328
- 19
- 69
- 103
2
votes
1 answer
Html.ActionLink() gives me an empty link when I use it inside Html.RenderAction()
I have a Microsoft MVC project with an action "Foo" whose view ("Foo.aspx") contains the lines:
<%= Html.ActionLink("mylinktext1", "bar") %>
<%= Html.ActionLink(x => x.Bar(), "mylinktext2") %>
When I hit this from a web browser or…

Brian Kendig
- 2,452
- 2
- 26
- 36
2
votes
1 answer
Using RenderAction() and posting back to sub-controller action
I have parent view that also renders sub-controller action using RenderAction() (that returns a PartialView). An example is a front page with Login partial view (inputs: username, password, remember and action: login)
Execution process
GET for…

Robert Koritnik
- 103,639
- 52
- 277
- 404
2
votes
2 answers
MVC RenderAction from View Error after model error
I am experiencing a bizarre problem with RenderAction. As my view model is very complex I will try to streamline the process in broad strokes, as follows:
Browser requests controller action.
Action populates complex view model and passes to a…

Julian Dormon
- 1,767
- 4
- 32
- 58