I'm trying to access some C# variables from my js script. I have a .NET project in VisualStudio, and another WebApp project (MVC template).
I want to access some of the data from my Class Library, in my .cshtml, in the part at the bottom of my script where I've added a <script type="text/javascript"></script> block.
Is this possible?
I've added the .NET project as a Reference for the WebApp, so I can technically access it somehow, but not sure how to pass it or if to use the Controller View() to do this or some other way...
Thanks