The problem I am facing is this:

<div data-role="footer">
    <a class="ui-btn" href="RV2.cshtml">Anchor</a>

In href, I am passing the name of file as it is, because RV2.cshtml is in Views folder and this file, from which I am calling RV2, is also in Views folder. But its not working this way. I have to put RV2.cshtml in Assets folder and then this HTML link starts working.

Why is that?? And I want all my views in Views folder not in Assets folder. What should I do to achieve that??

Here is the snapshot of folders:

enter image description here

Now this works fine.

But I want it the following way:

enter image description here

Related posts

Recent Viewed