© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
10 replies
hellounlimited

asp net cshtml javascript file

hi all, i have an asp net project (SimpleApp) and in a cshtml file of my SimpleApp project i tried to refer a javascript file from another project deployed using IIS under NoteApp name

<script src="/NoteApp/Scripts/note.js"></script>

but i can't seem to use the javascript file, but when i tried to hover the full path of this <script src="/NoteApp/Scripts/note.js"></script> that's displayed on the screen (check using developer tools) the fullpath is shown, however the file is not working and only working if i included full path for example <script src="192.168.1.11/NoteApp/Scripts/note.js"></script>, can anyone help advise why?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Using DataTable in .cshtml File with JavaScript
C#CC# / help
3y ago
❔ Access AppSettings from CSHTML in ASP.NET core
C#CC# / help
3y ago
❔ async code in cshtml file of asp net framework that target IE browser
C#CC# / help
4y ago
File upload ASP .net 6
C#CC# / help
3y ago