Hi everyone, I have a problem. I have a master page from which all my content pages are inherited. On this main page, I have a script tag pointing to a Javascript file folder~/Scripts/validation.js
On my content pages, I use various user controls that require the use of many functions in the file, validation.jshowever, unless I put <script>Javascript functions in the content holder on the content page, user controls do not see these functions. and I get errors as OnNameValidationnot defined.
Of course, I can copy Javascript code to all pages except 30+ pages and a maintenance nightmare if I find an error in one of the Javascript functions.
So the question (if you still haven’t understood from my long dissertation) is how can I declare a script tag with a path to the validation.js file so that the content pages, their user controls, etc. Could access functions / code.
source
share