Questions tagged [viewengine]
262 questions
1
vote
1 answer
Custom Nancy viewEngine
I am trying to build a view engine on top of the "Super simple view engine" with additional functionality. Everything is fine except how to do what only my engine will be executed?
As i understand, Nancy searches all assemblies and loads all view…

Alexanderius
- 822
- 11
- 27
1
vote
0 answers
Spark can't find views
I have the following folder structure in an ASP.NET MVC 2 app using Spark.
[site root]
home
HomeController.cs
Views
Shared
Index.spark
However, if I move Index.spark into the /home folder, I get the following…

3Dave
- 28,657
- 18
- 88
- 151
1
vote
1 answer
ASP.NET MVC: How do I get all available views?
I have a controller on my site that handles unknown actions and returns a view if it exists. This is so that static content can be added to this particular area of the site without having to modify the controller. The problem I am faced with now…

mkedobbs
- 4,327
- 2
- 23
- 28
1
vote
1 answer
Overriding MVC 4.0 ViewEngine
I want to have different views in different directories (NOT AREAS!) so that when the URL contains a certain string , the viewEngine will result serving the another view (same name) from a different directory.
The Code is here:
public class…

Guy Z
- 683
- 3
- 8
- 24
1
vote
0 answers
Rendering a partial multiple times in Handlebars+Nodejs
I'm quite new to the world of Node and Handlebars and have managed to get a single partial rendering in Node doing the following:
response.render('index',
{
'data': data,
partials:
{
…

Tom Maton
- 1,564
- 3
- 23
- 41
1
vote
2 answers
When is the MasterPageFile located in ASP.NET MVC WebForms ViewEngine
When is the MasterPageFile property of a view/page checked that it exists in ASP.NET MVC WebForms view engine?
What I want to do is have the following code not output the error:
Parser Error Message: The file '/SomePlaceThatDosentExist/Site.Master'…

Omar
- 39,496
- 45
- 145
- 213
1
vote
1 answer
How can I get Advanced Url Routing parametres?
It works now like localhost/Controller/Action
but I want it like localhost/MainFolder/SubFolder/Controller/Action
because I need to get my MainFolder and SubFolder name; like
RouteData routeData = htmlHelper.ViewContext.RouteData;
string…

yusuf
- 1,233
- 1
- 15
- 29
1
vote
1 answer
Master page magically changes in ASP.NET MVC Custom View Engine
OK I have inherited this code with a custom view engine. All it does is override FindView in order to return different views based on the device. Currently, iPad is detected as a mobile device and hence, mobile view is displayed. My task is to…

Hossein
- 1,090
- 1
- 8
- 24
1
vote
0 answers
return View(model) finds the view but passes a null model
I am moving the views of an old project from ASPX to Razor, I have almost finished with it without any major issues, but I have come to this kind of problem with some strongly typed views. The thing is that when the controller returns the view…

LorenzoGM
- 13
- 3
1
vote
1 answer
Custom ViewEngine, but still be able to use HtmlHelper editables?
If I have understod this right.. the razor view engine is specified to only allow HtmlHelper editables for the default paths.. but what if I change or extend the paths for where the engine should look for my partial views and then want to be able to…

Inx
- 2,364
- 7
- 38
- 55
1
vote
1 answer
View engine can't find my view
I am getting the following error when trying to return a ViewResult from a post action:
The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
…

Paul Fleming
- 24,238
- 8
- 76
- 113
1
vote
2 answers
What is the most usual way to develop views in asp.net mvc?
What is the most usual way to develop views in asp.net mvc? Should I be using a view engine other than the default? As far as I know, StackOverflow is the bigger site using ASP.NET MVC, so, what they use?
In the pros of using view engines, it seems…

eKek0
- 23,005
- 25
- 91
- 119
0
votes
1 answer
How to get action of form using jquery?
I have form in my page, I am using ajax.beginform(). Inside this form I have submit button. On submit of input button I want action of form.
Following is the piece of code which may be useful for you to understand.
@using…

suma
- 119
- 1
- 3
- 9
0
votes
1 answer
MasterPage/ContentPage with NVelocity and ASP.NET MVC?
I am a big fan of NVelocity. I think its terse syntax is a huge boon, and helps keep my views simple and effective. I have begun using the NVelocity view engine from the Mvc Contrib project for ASP.NET MVC, along with the Castle NVelocity .vm syntax…

jrista
- 32,447
- 15
- 90
- 130
0
votes
2 answers
Pointing all actions without specified view to one concrete view
I am creating advanced site that is based in 99% on one view. I have created the following code which is responsible to point all controllers actions which dont have corresponding view to universal view: ~/Views/Shared/UniversalView.cshtml.…

MaciejLisCK
- 3,706
- 5
- 32
- 39