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
1 answer
RenderAction - Using it without influence to parent
If I call RenderAction on action method which view has Html.BeginForm() with no params my form action folows the parent url.
If I add any param (route values, action, etc) , form action attribute is replaced with MyChildContorller's controller name…

Andrej Kaurin
- 11,592
- 13
- 46
- 54
0
votes
2 answers
Determine if MVC view is nested
I have two MVC views. The parent view uses Html.RenderAction to render a child view.
How, from within the base controller, can I identify whether the current view is an independent view or, whether it being rendered within a parent view using…

Anthony Faull
- 17,549
- 5
- 55
- 73
0
votes
2 answers
ASP.NET MVC with tree - pattern
I am preparing a skeleton of ASP.NET MVC application with basic CRUD functions on Products and Parts included in these products. Application contains couple of strongly-typed views based on the MasterPage and now I want to add a widget to display…

diork
- 1
- 1
0
votes
1 answer
Renderaction refresh / redirect parent page
I am currently working on an asp.net 4 mvc application and I'm trying to work out the best way to redirect / refresh the parent page after a form is submitted in the child controller.
So in my main view I have
Main…

DotnetShadow
- 748
- 1
- 10
- 28
0
votes
1 answer
Html.RenderAction from different directory
I am new to Asp.Net Mvc. This is my solution hierarchy
PROJECT
--Area
-- Account
--Controllers
--Models
--Views
-- Edit.cshtml
-- Contollers (this has an action method…

sanjeev
- 1,407
- 2
- 18
- 30
0
votes
1 answer
Is it a good idea to put content access logic in a BaseController?
I'm developing an ASP.NET MVC application where the content for any page can be pulled from the database, if it exists, and displayed on the page.
This is to make it possible for non-technical persons to edit the content without having to go into…

Jonathan
- 32,202
- 38
- 137
- 208
0
votes
2 answers
How can I highlight current page in MVC 3 using RenderAction inside another view
I have tried these:
http://developerstyle.posterous.com/highlighting-current-page-in-mvc-3-slick-tric
ASP.NET MVC - Current Page highlighting in navigation
ASP.net MVC - Navigation and highlighting the "current" link
none of the above solutions work…

n3tx
- 429
- 2
- 10
- 23
0
votes
1 answer
Access denied on RenderAction
I am working on a new project and am trying to log into the site (it uses forms authentication), but as soon as I log in I get this error.
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Description: An unhandled exception…

Sachin Kainth
- 45,256
- 81
- 201
- 304
0
votes
2 answers
RouteData lost on Post in a controller called by RenderAction
I have a "Resume" view which makes a call to RenderAction so I can add comments to a resume. Code:
@{Html.RenderAction("Add", "ResumeComment", new { resumeId = @Model.Id });}
So the code above calls Add action in my ResumeComment controller and…

user1322549
- 11
- 1
- 2
-1
votes
3 answers
Call a method that returns html from an action method
public ActionResult MyActionMethod(MyModel model)
{
//some code
string myVar= ActionMethod2(model).toString();
//use myVar
Method3(myVar, otherVar);
}
public ActionResult ActionMethod2()(MyModel model)
{
return…

Elnaz
- 2,854
- 3
- 29
- 41