I have a MVC Razor solution in which I have a separate HTML project(folder name Sub_HtmlProject from the attachment).
Question: How to use a JavaScript variable 'razorJSVar' defined in this Razor _Layout.cshtml
Views > Shared > _Layout.cshtml
To:
Sub_HtmlProject > index.html
Please note I would like to have a solution without using LocalStorage, Session, DB storage or any browser storage options.
**
Developer_29,
The issue is that you need to make index.html into index.cshtml and use the layout on that index.cshtml page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With