Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have add partial view(asp.net mvc) under view->account->Partialview but when i use following code to navigate , it's fail. When i add '#' with href then it works fine. I want to know that is there any way to get correct herf link of partial view like @url.Action("action name","controller name").might it will not work under production server.

before code:
HTML
<ul>
        <li><a href="/routeOne">Route One</a></li>
        <li><a href="/routeTwo">Route Two</a></li>
        <li><a href="/routeThree">Route Three</a></li>
    </ul>

 

After code:

 <pre lang="HTML"><ul>
        <li><a href="/#/routeOne">Route One</a></li>
        <li><a href="/#/routeTwo">Route Two</a></li>
        <li><a href="/#/routeThree">Route Three</a></li>
    </ul>

    <div ng-view></div>
Posted
Updated 11-Dec-15 6:02am
v2

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