Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
Hello All,

I have an MV Studio MVC Project. It is running well. I have created one root page namely, Index.html. I would like to call "View/Account/Login.cshtml" page from "Index.html" page.

The following screenshots have project and error view:
http://my.jetscreenshot.com/29065/20161202-ysmx-69kb

http://my.jetscreenshot.com/29065/20161202-lphy-32kb

http://my.jetscreenshot.com/29065/20161202-td1k-159kb

http://my.jetscreenshot.com/29065/20161202-3pxa-145kb


Reply me if anyone has a good solution to an issue.

Thanks.


What I have tried:

C#
I have tried below options:
<a href="~/Controllers/Account/Login">Log in</a>
<a href="~/Controllers/Account/Login">Log in</a>
Posted
Updated 1-Dec-16 20:00pm
v3

1 solution

try with controllername/actioname

HTML
<a href="/Account/Login">Home</a>
 
Share this answer
 
v3

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