[英]Using .net core and razor, how do I navigate back from a static page to the asp menu
I have successfully implemented static pages in asp.net core in the wwwroot folder.我已经在 wwwroot 文件夹的 asp.net 核心中成功实现了 static 页面。
I can navigate to those pages using the _layout menu.我可以使用 _layout 菜单导航到这些页面。
How do I navigate back from the static page to my asp.net razor home (index) page?如何从 static 页面导航回我的 asp.net razor 主页(索引)页面?
Thanks for the response - but no joy.感谢您的回复-但不高兴。
I have tried the html file at various points in the wwwroot structure.我已经在 wwwroot 结构的各个点尝试了 html 文件。 This variant matches the suggestion: Snip of wwwroot
此变体符合以下建议: Snip of wwwroot
I always manage to get to the html page on which I have:我总是设法进入我拥有的 html 页面:
I have tried all sorts of variants (again) including adding /Pages/, leaving out the 'cshtml' and../ when in lower directories in wwwroot.我已经(再次)尝试了各种变体,包括在 wwwroot 的较低目录中添加 /Pages/、省略“cshtml”和../。
I am using net core 5 and Razor pages.我正在使用 net core 5 和 Razor 页面。
Any more suggestions?还有什么建议吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.