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
2
votes
2 answers

Bizarre hidden character in MVC3 Razor loop

I have a loop
    @foreach (var item in Model.News) { @Html.Partial("RenderNews/" + item.TypeString, item) }
that uses partials like this @model Web.Models.DataModel.NewsItem @{ Layout =…
Bill Bonar
  • 1,017
  • 2
  • 10
  • 22
2
votes
2 answers

Dotnetnuke partial rendering make my jQueryUI widget stop working

I want to use tab widget of jQueryUI in dotnetnuke 5.6.3 I registered jQueryUI in my module and it works fine but when I use partial Rendering in my page it fails to load. Here is my code: $(document).ready(function () { …
Mosijava
  • 3,941
  • 3
  • 27
  • 39
2
votes
2 answers

Load partial from class library

Is there a way to load partial views from a class library? I would like to pull out the common parts from several websites to make them easier to maintain. Currently I render my partials with (for…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
2
votes
1 answer

Why Asp.net partial view not returning back?

I am a newbie and just started learning the asp.net mvc, as I was going through the partial view tutorial and I created the small test application which is working fine. I have a page which has a customers order and each item has an edit buttons for…
S.M.
  • 71
  • 7
2
votes
1 answer

ASP.NET MVC 2 View with PartialView - PartialView Opens New Page

My code works perfectly in VS2010 C# but once published to IIS7 the PartialView (list of records) does not get rendered in the View...it rolls to a new page without the data except for the correct record count retrieved from SQL server. SQL server…
treeSeeker
  • 97
  • 1
  • 2
  • 11
2
votes
1 answer

ASP.Net MVC3 Menu with different Model as Content (partial view, renderpage?)

i have a page with a fix menu on the left side. This Partial View needs a different Model as the Main Page (Content). Masterpage/Layout:
@RenderPage("~/Views/Admin/part/_Menu.cshtml", new {…
Sand
  • 51
  • 2
  • 8
2
votes
1 answer

RenderPartial renders on Dev but fails on Production server

I'm calling a RenderPartial from a primary view where 'user' exists: @{Html.RenderPartial("DisplayTemplates/uInfo", user);} Works on my dev machine but the production server is tossing that runtime error: The partial view 'DisplayTemplates/uInfo'…
justSteve
  • 5,444
  • 19
  • 72
  • 137
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
2 answers

Refresh partialview in _Layouts.cshtml

I have the following partial view: Login Status @{ if (ViewBag.UserId > 0) { @Html.ActionLink("Log Out", "LogOut", "Home", null); } else { @Html.ActionLink("Log In", "Login", "Home", null); } } It's…
Jason Evans
  • 28,906
  • 14
  • 90
  • 154
2
votes
2 answers

Rails rendering a partial multiple times based on the collection size

I have a partial that takes a collection, iterates through that collection displaying the individual items. Here is the code: The Partial: <% for point in @points %>
slotishtype
  • 2,715
  • 7
  • 32
  • 47
2
votes
0 answers

ASP.NET MVC Razor Sections and Partials

I'm relatively new to ASP.NET MVC and Razor. We've been modifying and developing based on existing code. Thus, there is a lot of duplication (ugh!). So I started looking at Partial pages and learning about Sections. I followed these tutorials…
Patricia
  • 5,019
  • 14
  • 72
  • 152
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
3 answers

Rails partial template rendering repeatedly when a helper method uses the yield keyword

I have seen some strange behavior when using rails with partial layouts plus a helper method coded as an iterator using the yield keyword. I am hoping someone can: Explain what's going on and why I get the duplicate rendering and maybe Suggest an…
Peter Lyons
  • 142,938
  • 30
  • 279
  • 274
2
votes
2 answers

Thread.Timer With HttpContext is not working

hello i'm trying to send email at a specific time i found the code. On global.asax.cs file protected void Application_Start() { ETHOS.Controllers.HomeController mail = new Controllers.HomeController(); mail.ScheduleService(); private…
2
votes
3 answers

How to reload a div using render(:update) and replace_html?

How to reload only the div id on a page? I just need to reload a certain div. in my controller I have def mycontrolleraction ... render(:update) do |page| reload_only_the_div('adiv'), :controller => 'my_controller' end end Is this possible?
jbjuly