Member 8090436 Ответов: 1

Как вызвать файл. cshtml view из index.html файл?


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.


Что я уже пробовал:

I have tried below options:
<a href="~/Controllers/Account/Login">Log in</a>
<a href="~/Controllers/Account/Login">Log in</a>

1 Ответов

Рейтинг:
0

King Fisher

попробуйте использовать controllername/actioname

<a href="/Account/Login">Home</a>