Questions tagged [viewengine]
262 questions
2
votes
1 answer
Custom view engine locations view model parsing issue
So I've been tinkering with View locations for an MVC app I'm working on, specifically because I need to be able to use views/routes for a parent site in a child site.
Ultimately I want to be able to serve up views from a different location, say…

Tim Butterfield
- 565
- 5
- 24
2
votes
0 answers
Dynamic RazorViewEngine for relating controllers dedicated to partials
I'm working on what should be a minor RazorViewEngine Extension, but having some difficulty with the second part of my approach.
Basically I have some controllers that are dedicated to some partial views, and would like to be able to place them in…

Seth
- 954
- 1
- 15
- 42
2
votes
3 answers
MVC: no views found, no locations were searched. Now why is that?
The image of a login page (clickable image):
Is it seems (though the debug viewer), the ViewEngines are both (razor+webforms, im using the first) there, in the ViewEngines collection, and them both can find the views (manually) and display them,…

AgentFire
- 8,944
- 8
- 43
- 90
2
votes
1 answer
ASP.NET MVC Custom View Engine Not Being Called
I am attempting to impliment a custom view engine to serve mobile views based on the user agent. I am following Scott Hanselman's approach from this blog post.
I have inherited from the WebFormsViewEngine and overridden the FindView method the same…

Jeff French
- 1,029
- 8
- 22
2
votes
1 answer
ASP.NET MVC view engine performance
I'm developing high load solution with final version of asp.net mvc.
Recently our team noticed, that most of the time that takes a server to response to client is devoted to page rendering. Simple time-schedule looks like this:
Page start -…
user192357
2
votes
1 answer
when does ReleaseView get's called?
I'm just a newbie to MVC.
I've started reading Professional ASP.NET MVC3 by Jon Galloway, Phil Haack, Brad Wilson, Scott Allen
I've seen a method named as `ReleaseView, when trying learning on how to create a custom view. I've googled about that…

Karthik Chintala
- 5,465
- 5
- 30
- 60
2
votes
0 answers
ASP.NET MVC 4 Areas within Areas won't render the Shared _Layout.vbhtml from Master project
Ok so I have this interesting ASP.NET MVC 4 solution/project structure, which creates pluggable application modules. I created it following this…

CokoBWare
- 456
- 3
- 13
2
votes
1 answer
The view 'Home' or its master was not found or no view engine supports the searched locations. The following locations were searched: 'sporadic error'
I am getting sporadic errors when working with my MVC 4 application when trying to return a View.
In this particular case, I am about to return a View return View("Home", model); and that's where I get the msg. It also seems to sporadically happen…

sagesky36
- 4,542
- 19
- 82
- 130
2
votes
1 answer
How to use Underscore.js as View Engine for Express v3
There is a question on here answering for v2, but the v3 ExpressJS api is quite different, and uses a totally different layout system. Does anyone have any experience using Underscore.js (if needed with Consolidate.js) as the main view engine for an…

Daniel Schwartz
- 21
- 3
2
votes
2 answers
Dynamic layout for mobile visitors on ASP.NET MVC 3?
I want to dynamically change the layout, based on whether the user is accessing the site from a mobile device or not. I have a few questions on the subject.
I would like to change the layout once it's determined, but before the view is rendered.…

bevacqua
- 47,502
- 56
- 171
- 285
1
vote
1 answer
Using area display template from root project?
I have an area in my mvc project and this area has some display templates. If I use @Html.DisplayFor(x => Model.Image) I want to use the display template from my are for the Image. How can I configure my view engine so it also looks inside my area…

marcus
- 9,616
- 9
- 58
- 108
1
vote
1 answer
Find the atrributes on an action from the ViewEngine in ASP.NET MVC
I've got a custom ViewEngine and I want to modify the master page used depending on if the requested action has an Authorize attribute filter.
So far I'm just using reflection like this:
var method =…

Glenn Slaven
- 33,720
- 26
- 113
- 165
1
vote
2 answers
How to default your asp.net-mvc site to look for razor views first?
I am converting all of my views over to razor so I have created all new view files but I haven't deleted the aspx file (I just have them excluded from the project). When i go to test my site, it seems to try to look for and load the aspx files. …

leora
- 188,729
- 360
- 878
- 1,366
1
vote
2 answers
InRequestScope provider (for custom ViewEngine) only called once at appstart
I want to inject a custom ViewEngine into my MVC website. This is what I do:
private static IKernel CreateKernel()
{
kernel.Bind().ToProvider(new RazorViewEngineProvider()).InRequestScope();
}
This is my provider:
public class…

user369117
- 775
- 1
- 8
- 19
1
vote
1 answer
Can I interleave two MVC view engines when searching for views?
I'm using the WebForms and Razor view engines in my MVC project. They work just fine together. However, I have an inheritance-based project set up, such that I have multiple child projects derived from a base project. With just one view engine, this…

Mike Pateras
- 14,715
- 30
- 97
- 137