How to add files into the mvc project?

angeljanne
Posts: 5
Joined: Sat Nov 07, 2015 3:50 am

How to add files into the mvc project?

Postby angeljanne » Mon Nov 09, 2015 7:29 pm

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 3313 times


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


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


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

angeljanne
Posts: 5
Joined: Sat Nov 07, 2015 3:50 am

Re: How to add files into the mvc project?

Postby angeljanne » Mon Nov 09, 2015 10:20 pm

The problem was been solved. The next problem is how can I display the model from controller in mvc like razor?

licedey
Posts: 2
Joined: Sat Feb 20, 2016 9:21 am

Re: How to add files into the mvc project?

Postby licedey » Sat Feb 20, 2016 9:24 am

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?


Return to “General Discussion and Other”

Who is online

Users browsing this forum: No registered users and 1 guest

 

 

cron