Questions tagged [renderpartial]

The concept of rendering only a specific part of any UI. May also refer to the .NET `RenderPartialExtensions.RenderPartial` method or the Ruby on Rails `PartialRenderer`

The concept of rendering only a specific part of any UI. May also refer to the .NET RenderPartialExtensions.RenderPartial method or the Ruby on Rails PartialRenderer

391 questions
0
votes
1 answer

rendering rails partial in a js.erb without reloading the entire page

I have a partial in my page that gets loaded when i load the page. The partial gets called like this upon load. <%= f.simple_fields_for :application_attachments do |attachment| %> <%= render "attachment_fields", {:f => attachment,…
0
votes
1 answer

The virtual path '/' maps to another application IIS 7

I call HTML.RenderPartial in Razor take tilde (~) and works fine on VS2015 but when publish on IIS under Default Web Site give that error "The virtual path '/' maps to another application, which is not allowed."
user3779459
  • 1
  • 1
  • 3
0
votes
1 answer

How to render indentation with erb in Rails partial

So I have a partial which gets a parameter and lists its properties: <% if entry %> { <%= render partial: 'user_data', locals: {entry: entry} %> } <% end %> The _user_data.html.erb: <% if entry.name != nil %> name: <%=…
MattSom
  • 2,097
  • 5
  • 31
  • 53
0
votes
2 answers

asp.net Core 1 RenderPartial ViewDataDictionary

I am re-writing a website in VS 2017 that was originally written in VS 2010. The command I used originally to display my visitor count in the footer was:- @Html.RenderPartial( "/Counter/Counter.ascx", new ViewDataDictionary {{ "digits", 6 }, { "id",…
xiecs
  • 727
  • 11
  • 28
0
votes
2 answers

Rendering a partial with a jquery click on rails

I am new at rails. I have read almost all the posts opened in the past and I have tried so many things mentioned here, it still does not work. My rails version is 4.2. I am getting this error: undefined method `render' for #<#Class:....... This…
0
votes
1 answer

Rails form_for renders partial form_for to list values without submitting to DB, but now 2 submits

I have a simple display - form_for an application that renders another partial with form_for for displaying education qualifications. The partial is polymorphic. So, now I have 2 submits, the main submit simply doesn't respond and partial…
Means
  • 322
  • 2
  • 4
  • 16
0
votes
1 answer

how to render partial view inside a for loop so i can save all rows?

I just started MVC and I'm having troubles on saving and IList model to database. I have a for loop, looping through a list as suggested by all the posts i've read on how to save multiple items inside the model. However, I cannot see examples or…
0
votes
1 answer

asp.net mvc rendering html recursively

i have recently run into a strange problem. i have a table in db named Task. A Task may have a parent task and more than one child tasks (self join). i have written a stored procedure that returns me all the tasks in the project their children and…
Muhammad Adeel Zahid
  • 17,474
  • 14
  • 90
  • 155
0
votes
2 answers

jQuery ajax partial update of page

Here is my simple jQuery function to partially update a page