Questions tagged [viewengine]
262 questions
0
votes
1 answer
How do I show a HTML tag only when Express view engine passes a value?
If you see the code below, you'll notice that for GET request, 'add' page does not get any value passed, whereas for POST request, 'add' page gets 'msg' value as a result of posting.
router.get('/add', (req, res) => {
res.render('add',…

Intaek
- 315
- 4
- 15
0
votes
1 answer
If i specify app.engine in express, do i need to app.set view engine also?
I'm learning Node.js and at template topic right now. First i used only EJS and configured app.set('view engine', 'ejs') for it to work properly. Next to create layout i installed ejs-mate and added app.engine('ejs', require('ejs-mate')) in my code.…

GTB
- 57
- 5
0
votes
1 answer
How To render HTML with CSHTML Template file in razor with enabled static File
Hello I am actually generating a html file from cshtml template for reporting purpose.
The issue is when i use cdn link for bootstrap in the cshtml file the html rendered got all the css i designed but when using a local access of bootstrap it the…
0
votes
0 answers
CSS files throwing error in server side JSX
I am using express on the server and using jsx as the view engine. When I try to import CSS files in my jsx file
import './style.css' the page throws an error on the first line
#container{
^^
Unexpected identifier
Even if I use other css files, for…

Odasaku
- 177
- 6
- 17
0
votes
1 answer
How do I use two different view engines in Javascript?
I made a database using node.js and mysql and all my views are hbs files.I want that when user logs in they are able to check their score on My Account page. I saw a tutorial on how to display score in table form but it used ejs view engine to…

T H
- 11
- 7
0
votes
1 answer
Facing problem in deleting checked boxes by clicking del button
I am working on a TO-DO list mini project and I want to delete all checked boxes by pressing the del button .
Note: I want to achieve this without using databases and what to delete object in dolist array.
Link to full…
user14186487
0
votes
3 answers
Override the Default ViewEngine to Look in Different Directories
I created an area in Visual Studio which automatically adds the appropriate bits in the "Areas" directory. I renamed this to "Modules" but now when i navigate to /{area}/{controller/{action} it still looks for the view within the…

nfplee
- 7,643
- 12
- 63
- 124
0
votes
4 answers
View engine does not render the view when I pass a model from the controller
I am developing an MVC3 application using C# and Razor. I have a problem when I need to display one the Play View.
The Play action method is used to retrieve a path of a FLV (Flash) file to be then passed to the Play View to reproduce the…

CiccioMiami
- 8,028
- 32
- 90
- 151
0
votes
3 answers
Extending WebFormView in MVC
I want to extend the WebFormViewEngine so that I can perform some post-processing - I want it to do it's stuff, then hand me the Html back, so I can do put some final touches to it. It needs to be done as a View/ViewEngine because I need access to…

littlecharva
- 4,224
- 8
- 45
- 52
0
votes
1 answer
How to make a structure map powered viewengine in asp.net mvc
My views extend a base view class I've made:
public class BaseView : ViewPage
At the moment I'm calling ObjectFactory.GetInstance inside this class's constructor to get some interface implementations but I'd like to use structuremap to inject them…

Andrew Bullock
- 36,616
- 34
- 155
- 231
0
votes
2 answers
While learning SharePoint 2010, what View Engine should i use in ASP.NET MVC 3?
While learning SharePoint 2010, what View Engine should i use in ASP.NET MVC 3?
My goal is to choose a View Engine that also helps improving my skills developing for SharePoint 2010.
My guess is the ASPX, but im not really sure.

Tim
- 1,045
- 14
- 23
0
votes
1 answer
does Razor view engine create IView object after parsing .cshtml?
My textbook shows an example of how to write custom view engine(implements IViewEngine, and the view it uses is a class that implements IView
public interface IViewEngine{
ViewEngineResult FindView(ActionContext context, string viewName, bool…
user11680003
0
votes
1 answer
How to use a Partial from a UNC Path?
I'm trying to use partials from a UNC path. I've extended the RazorViewEngine to include the path, and registered properly. When I load the view, it shows that path that I have included with the partial name correctly listed, but still shows it…

Case
- 1,848
- 21
- 32
0
votes
0 answers
Asp.net custom razor view engine specify cshtml file location
solution screenshotI have several projects with MVC Views, 'TestProject' is the Website Content Directory,
When I debug, I need build 'Address' project every time if I change cshtml file.
I try to override RazorViewEngine, but it use Virtual Path,…

xiaoquan
- 31
- 4
0
votes
3 answers
Cannot read property 'firstname' of undefined in view engine node js
I am trying to display json data on a website using view engine (ejs) but I am facing following error Cannot read property 'firstname' of undefined
this is my program
node.js
io.readEmp().then(function(data){
…

Dhruvin modi
- 613
- 1
- 8
- 13