Page 1 of 1

How to add files into the mvc project?

Posted: Mon Nov 09, 2015 7:29 pm
by angeljanne
I want to use xaml to finish the UI part of mvc project. I've tried coping the html5 files to the 'Views' folder and rename the file extension to .cshtml. Finally I update the js code and link.

But it always alerts undifined text when the page load. Please tell me what should I do....

QQ截图20151110112319.png
QQ截图20151110112319.png (29.23 KiB) Viewed 8987 times


QQ截图20151110112611.png
QQ截图20151110112611.png (11.88 KiB) Viewed 8987 times


QQ截图20151110112451.png
QQ截图20151110112451.png (25.64 KiB) Viewed 8987 times


The exception is thrown at function loadJSIL(config){...} in JSIL.js.

Re: How to add files into the mvc project?

Posted: Mon Nov 09, 2015 10:20 pm
by angeljanne
The problem was been solved. The next problem is how can I display the model from controller in mvc like razor?

Re: How to add files into the mvc project?

Posted: Sat Feb 20, 2016 9:24 am
by licedey
angeljanne wrote:The problem was been solved. The next problem is how can I display the model from controller in mvc like razor?

Could you please to share how do you solve the problem? Is it good experience to mix ASP.NET MVC and C#/XAML translated to HTML5?