Questions tagged [renderaction]

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.

130 questions
1
vote
2 answers

New to ASP.NET MVC, having trouble with render action containing a form

I am used to ASP.NET web forms, and am slowly learning ASP.NET MVC. My website has a little login form on the homepage. My natural thought is that this login form may be useful in other places, and it is not the primary action of the homepage, so I…
1
vote
1 answer

How to call @Html.RenderAction on HttpPost

Following is the exact structure of a View in my MVC application. A view contains -> LHS: @Html.RenderAction, which invokes an action by supplying some parameters and loads Partial View that is showing a list to the user. RHS: Another PartialView…
Nirman
  • 6,715
  • 19
  • 72
  • 139
1
vote
1 answer

Setting actionlink text from table

I'm working on a MVC 3.0 application. I have a list of persons from my database, each of them have a relation to another table in the database called area. The person DTO public class Person { int PersonId {get; set;} string Name { get;…
1
vote
1 answer

Rails 3 render action

In the Rails 3 app I am working on, we allow users to "activate" an account (by typing in a coupon code) and then they type in their information and voila, their account is created. I am running into a small issue that I am unclear how to solve…
dennismonsewicz
  • 25,132
  • 33
  • 116
  • 189
1
vote
0 answers

Which is a better approach? How can i replace @Html.Partial with @Html.RenderAction?

We are converting our app from ASPNET Webforms to ASPNET MVC. Currently we are doing small POC's on our exiting features. We have a dashboard page that looks like below "Member Dashboard", "Account Summary" and "Plan Information" are Partial…
nfa379
  • 561
  • 3
  • 6
  • 13
1
vote
1 answer

How to identify request sent via Html.RenderAction()

In a project we use PartialView and View on the same action, depending how it is called (thanks to Request.IsAjaxRequest()). But there are places where we need to render an action on a page (not ajax). So we use the HTML helper…
Whoami
  • 334
  • 4
  • 16
0
votes
1 answer

DevExpress tabs and gridview inside

How to call controller and its action from PartialPage.cshtml Let say I have Html.DevExpress().PageControl( settings => { settings.Name = "MyTabs"; settings.Width = 520; settings.Height = 360; …
BobRock
  • 3,477
  • 3
  • 31
  • 48
0
votes
1 answer

asp.net mvc not rendering actions

I have a layout page with the following _app.cshtml
@{ Html.Partial("_LogOnPartial"); }
The log on partial contains _LogOnPartial.cshtml @{ Layout = null; } @if (Request.IsAuthenticated) { …
Daniel Powell
  • 8,143
  • 11
  • 61
  • 108
0
votes
2 answers

Rendering rails named route

How do I render a rails named route properly from controller? routes.rb: get "logout" => "sessions#destroy", :as => "logout" get "login" => "sessions#new", :as => "login" get "signup" => "users#new", :as => "signup" root :to =>…
GTDev
  • 5,488
  • 9
  • 49
  • 84
0
votes
0 answers

HTML.RenderAction not working in ASP.NET Core 6 MVC

I am trying to use index view to call another view using renderaction, trying to learn ASP.NET Core 6 MVC from some tutorial. Can anyone please help how to handle this as renderaction not supporting.
SURBHI
  • 1
0
votes
1 answer

RenderAction method parameters are null after a postback

My problem is that the parameter values in the RenderAction GET method are null after any postback in the application (see below). Can you help me identify the problem or how to better structure the layout code maybe? I'm thinking of using the…
BigThinker
  • 81
  • 1
  • 11
0
votes
1 answer

Html.RenderAction with Angular

I try to write something like below; Html.RenderAction("Reviews", "Poetry", new { id = "{{ poetry.ID }}" }); But it gives an error like "The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for…
thrashead
  • 337
  • 1
  • 3
  • 16
0
votes
1 answer

how to return actionresult of another action from controller context

Here is my current code, I am using this to implement tabs public ActionResult Index(string tabs, int id = 0) { switch ((Tabs)Enum.Parse(typeof(Tabs), tabs,true)) { case Tabs.Profile: default: return Profile(id); …
Aivan Monceller
  • 4,636
  • 10
  • 42
  • 69
0
votes
1 answer

Passing model data onto another view

So I've tried to follow multiple threads on here to do what I am to, and so far it all seems to have something to do with a singleton which I think is a bit over-the-top solution for my issue. I'm trying to do the following: I have my login async…
0
votes
1 answer

What's the best structure for (or instead of) using multiple partial views?

I have a view that calls on four different partial views (.ascx) to populate a portion of the view via RenderAction call. Each of the partial views use the same view model, but each returns a different set of data via their own EF query in the…
karman
  • 141
  • 1
  • 1
  • 8
1 2 3
8 9