Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am new for durandal JS. I have gone through some demos.I have created html and some js.
It works fine. but when I replace html with aspx then it shows error and dont run well. What can be the solution ?

Edit (Moved comment)
error is :View Not Found.
Searched for "home" via path "text!home.html". It wont get find any more because I don't have html file instead I have home.aspx file
I want to run that aspx file when user click on home.
Posted
v2
Comments
What is that Error?
Prasad gavande 30-Jan-14 2:11am    
error is :View Not Found. Searched for "home" via path "text!home.html". It wont get find any more because I dont have html file instead I have home.aspx file
I want to run that aspx file when user click on home

1 solution

Yes, and finaly I have got the solution
1) go to \lib\durandal\js\viewEngine.js
2) there is one property
viewExtension: '.html'
* The file extension that view source files are expected to have.
* @property {string} viewExtension
* @default .html
3) set this to
viewExtension: '.aspx'

It works
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900