Top "Partial-views" questions

User control in Asp.

Rendering the field name in an EditorTemplate (rendered through EditorFor())

I'm currently building the Admin back-end for a website in ASP.NET MVC. In an ASP.NET MVC application, I've …

asp.net-mvc asp.net-mvc-2 partial-views editorfor
ASP.Net MVC 3 Unobtrusive validation not working on Partial View

I've setup a partial view which houses its own form tag, like so: <tr> @using (Html.BeginForm("Create")) { &…

asp.net-mvc-3 partial-views unobtrusive-validation
ASP.Net MVC 3 EditorTemplate for DateTime Fields Error

This code was converted from some ASP.Net MVC 2 code in this tutorial: MVC 2 Editor Template with DateTime It is …

asp.net-mvc-3 razor partial-views editortemplates
How to update a div with Ajax.BeginForm AND execute a javascript function?

I am updating a div with a partial view by using something like this: <% using (Ajax.BeginForm("Action", "Controller", …

c# asp.net-mvc asp.net-ajax partial-views
should I be using an @html.renderpartial or @html.renderaction

I'm trying to bring in my menu. In my _Layout.cshtml page I have <div class="wrapper"> <!…

c# asp.net asp.net-mvc partial-views renderaction
Rendering Partials From One Controller’s View to Another Controller’s View in Rails

I have a view for a controller called "show". Inside that view, i want to render the contents of another …

ruby-on-rails partial-views controllers
Ruby on Rails - Passing variables to a partial within a partial

I am passing a collection (@feed_items) to a _feed_item partial via the :collection option. Inside the _feed_item …

ruby-on-rails ruby ruby-on-rails-3 partial-views
ASP.Net MVC Controller for _Layout

I am working on a dynamic menu system for MVC and just to make it work, I created a partial …

asp.net-mvc menu partial-views
Html.RenderPartial and Ajax.BeginForm -> Submit is called twice

I have the following index view: @model BoringStore.ViewModels.ProductIndexViewModel @{ ViewBag.Title = "Index"; } <h2>Produkte</h2> &…

asp.net-mvc-3 razor asp.net-ajax partial-views double-submit-problem
The partial view 'First.cshtml' was not found or no view engine supports the searched locations

I'm trying to call partial view in div on click. I've written this: @Ajax.ActionLink("Second", "Second", new AjaxOptions() { HttpMethod = "…

asp.net-mvc asp.net-mvc-4 razor partial-views asp.net-mvc-ajax