Accessing javacript code in a separate file from aspx.cs page
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi All, I have ASP.NET application written in C#. I have this legacy code that is written in javascript in a file called MyClass.js. I would like to call some functions that are in the MyClass.js file from a function in the codebehind page of one of my forms, how do i do this? For example, in my legacy code I would make a statment like this var myClass = new MyClass(); var value = myClass.someFunction(); I want to add this code into one of the functions in codebehind file. Thanks in advance!!